Strange memory issue(?) with 6850
Dominique.GARNIER at arval.fr
Dominique.GARNIER at arval.fr
Mon Mar 12 07:47:04 CST 2007
hello,
Ok i tried your test about mlocking 6Go of memory with 6 processes on a
system
having around 5.5 Go of memory free displayed by free on -/+
buffers/cache
Result: when i fired the last one. system got unresponsive. the program
did
not even managed to write the mlockall return value and OOM finished by
killing two
of my programs and i got the system back with 4 processes running:
Mar 12 14:12:47 FRPIVSQL0597 kernel: Out of Memory: Killed process 28918
(a.out).
Mar 12 14:12:51 FRPIVSQL0597 kernel: Out of Memory: Killed process 28881
(a.out).
I did the same thing without mlockall and i was able to fire the 6
processes even
though the last one needed a little more time to start.
Before the system hang in the first case i had the time to see it use
swap like a
fool... around the whole 6Go just when i did the last run. In the second
case the
system allocated around 700Mo of swap when i fired the sixth one and
everything
was fine.
what do you make of it? It seems that these 2Go are really used arent
they?
PS: the a.out processes remaining after OOM killer:
RSS VSZ PID CMD
1049932 1050960 29585 ./a.out
1049932 1050960 29591 ./a.out
1049932 1050960 29594 ./a.out
1049932 1050960 29595 ./a.out
-----Original Message-----
From: linux-poweredge-bounces at dell.com
[mailto:linux-poweredge-bounces at dell.com] On Behalf Of Kuba Ober
Sent: vendredi 2 mars 2007 23:04
To: linux-poweredge at dell.com
Subject: Re: Strange memory issue(?) with 6850
On Friday 02 March 2007, Dominique.GARNIER at arval.fr wrote:
> Hello,
>
> I'm completely clueless about what's happening there. When i type a
> free in some of our 6850 (Redhat Enterprise 4 AS U4 smp kernel x86_64
> fully patched) i have something looking like the following:
>
> free
> total used free shared buffers
> cached
> Mem: 8158444 3251208 4907236 0 276884
> 835120
> -/+ buffers/cache: 2139204 6019240
> Swap: 6265340 0 6265340
>
> So it seems that i have like 2Go of memory used BUT this is not the
> case. Nothing is running on the server right now apart from dell omsa.
> At the same time, we're experiencing the aknowledged memory leak issue
> with OMSA (5.1.0) but i restarted it just before doing this 'free'
> and it released like 900Mo of memory. But i'm still left with another
> 2Go of memory used.
Here's what I make of it:
Modern OSes generally don't like wasting your precious memory. Free RAM
is RAM for which you've paid and you get nothing in return. On very
lightly loaded system, a modern OS will typically cache most of the disk
blocks that were ever accessed since the boot. So your expensive 2.5ns
RAM is working to make disk accesses quicker, at least! As soon as you
start loading more applications and there's more memory pressure, the
cache allocation will drop significantly.
The free tool does not tell you what you think it does. Used memory
isn't necessarily used by the applications, and isn't necessarily
"taken" by the kernel. In your case most of the "used" memory is highly
liquid and can be allocated for appliations almost instantly.
If you want to try it out, write a small C program to malloc() a
gigabyte of RAM, and then mlockall(). Subsequently go over the
malloc()ed memory it in a loop and write to every page (to make sure the
pages are committed). Or disable overcommit in the kernel.
On your system, you should be able to fire up about 6 such processes, at
which point the "used" memory will grow to 100%. Yet you still have 6GB
for
*exclusive* use of those applications (kernel won't swap those pages!).
That's in spite of supposedly 3/8 of your memory being previously used.
Cheers, Kuba
_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge at dell.com
http://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq
Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle,
est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, ARVAL (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie.
This message and any attachments (the "message") is intended solely for the addressees and is confidential.If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.The Internet can not guarantee the integrity of this message. ARVAL (and its subsidiaries) shall (will) not therefore be liable for the message if modified.
More information about the Linux-PowerEdge
mailing list