Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-9177

"warning: failed to read from /proc/self/numa_maps: errno:2 No such file or directory" < 100 characters

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.1
    • Component/s: None
    • None
    • Environment:
      CentOS 6.4
    • ALL

      /proc/<PID>/numa_maps is checked with the following code.

                  if (f.is_open()) {
                      char line[100]; //we only need the first line
                      f.getline(line, sizeof(line));
                      if (f.fail()) {
                          warning() << "failed to read from /proc/self/numa_maps: "
                                    << errnoWithDescription() << startupWarningsLog;
                          warned = true;
                      }   
      
      

      so the expectation is that the first line of /proc/<PID>/numa_maps is 100 or fewer characters.

      But this warning was still triggered for the 98 character first line of a numa_maps file.

        1. 26133_numa.txt
          6 kB
          Stephen Lee

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            stephen.lee Stephen Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: