RE: mdadm memory leak?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Guy <bugzilla@xxxxxxxxxxxxxxxx>:

Run "ipcs" to see if you have shared memory usage that seems wrong, or
grows.

# ipcs -m
------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x00000000 65536      root      600        33554432   11         dest
0x0052e2c1 98305      postgres  600        10330112   11

I have none, but I don't have a database.  Databases I have used on other
systems tend to use a lot of shared memory.

Also, if you were really out of memory, you would have active swapping.
This has happened before. The computer was thrashing so badly, all I could do
was hit ctrl-alt-del and hope it eventually shut down cleanly. Which it did
about an hour later.

It is normal for the buffer cache to use most "unused" memory, so it would
seem like you have almost none free, but the buffer cache will give up
memory when needed.  I think you have another problem, not memory related.
Also, you can stop mdadm from running.  The system will still work, just not
monitor the arrays.  If you really think it is mdadm related, kill it.  Or
use "/etc/init.d/mdmonitor stop".  At least as a test.
I think mdadm isn't actually running, so it might be the device mapper stuff
itself. ps -eaf | grep mdadm shows nothing


Run top, look at this line:
Mem: 515296k av, 508128k used, 7168k free, 0k shrd,  128412k buff
From my top:
Mem:    773984k total,   765556k used,     8428k free,    65812k buffers
Swap:  2755136k total,        0k used,  2755136k free,   526632k cached


I think buff (128412k) is the amount of "unused" memory.  But not sure.  I
never had a memory issue with Linux, so have not researched this.  But I
have on other Unixes.

Guy



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Attachment: pgpDxzTaN1Jed.pgp
Description: PGP Digital Signature

Attachment: biniLRKRGcEOF.bin
Description: PGP Public Key


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux