← Back to team overview

kernel-packages team mailing list archive

[Bug 1226172] Re: iostat: Cannot open /proc/stat: Cannot allocate memory

 

** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

** Tags added: kernel-da-key

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1226172

Title:
  iostat: Cannot open /proc/stat: Cannot allocate memory

Status in “linux” package in Ubuntu:
  Incomplete

Bug description:
  I receive an intermittent error using iostat -k 5 : "Cannot open
  /proc/stat: Cannot allocate memory"

  This can also be simply reproduced by entering: "cat /proc/stat", one
  to several (~5-10) times.

  strace on the "cat /proc/stat" method:
  ...exclude typical run-up...

  fstat(3, {st_mode=S_IFREG|0644, st_size=1607664, ...}) = 0
  mmap(NULL, 1607664, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd755b77000
  close(3)                                = 0
  fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 5), ...}) = 0
  open("/proc/stat", O_RDONLY)            = -1 ENOMEM (Cannot allocate memory)
  write(2, "cat: ", 5cat: )                    = 5
  write(2, "/proc/stat", 10/proc/stat)              = 10
  open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
  fstat(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
  mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd755d09000
  read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
  read(3, "", 4096)                       = 0
  close(3)                                = 0
  munmap(0x7fd755d09000, 4096)            = 0
  open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
  open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)

  ...exclude typical throw-error via LC_MESSAGES/libc.mo...

  
  /proc/meminfo detail:
  # cat /proc/meminfo 
  MemTotal:       32947584 kB
  MemFree:          302664 kB
  Buffers:          154064 kB
  Cached:         21284268 kB
  SwapCached:      1728840 kB
  Active:         12576792 kB
  Inactive:       17279896 kB
  Active(anon):    5097984 kB
  Inactive(anon):  3320844 kB
  Active(file):    7478808 kB
  Inactive(file): 13959052 kB
  Unevictable:           0 kB
  Mlocked:               0 kB
  SwapTotal:      187617276 kB
  SwapFree:       185330320 kB
  Dirty:               148 kB
  Writeback:             0 kB
  AnonPages:       7048592 kB
  Mapped:           104312 kB
  Shmem:               604 kB
  Slab:            1947068 kB
  SReclaimable:    1523288 kB
  SUnreclaim:       423780 kB
  KernelStack:        8800 kB
  PageTables:        38260 kB
  NFS_Unstable:          0 kB
  Bounce:                0 kB
  WritebackTmp:          0 kB
  CommitLimit:    204091068 kB
  Committed_AS:   15333712 kB
  VmallocTotal:   34359738367 kB
  VmallocUsed:      163292 kB
  VmallocChunk:   34359457992 kB
  HardwareCorrupted:     0 kB
  AnonHugePages:     38912 kB
  HugePages_Total:       0
  HugePages_Free:        0
  HugePages_Rsvd:        0
  HugePages_Surp:        0
  Hugepagesize:       2048 kB
  DirectMap4k:      333824 kB
  DirectMap2M:    14313472 kB
  DirectMap1G:    18874368 kB

  
  This only seems to happens on specific hardware: Intel Server System P4000CP / S2600CP Motherboard, booted with kernel option: "pci=conf1"

  This does NOT happen on very similar hardware: Intel Server R2312GZ /
  S2600GZ Motherboard

  
  Is there a possible memory, or kernel memory sysctl configurable I'm missing here?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1226172/+subscriptions