Print

Print


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Mar 11, 2007 at 12:39:41AM +0200, Arthur Sherman wrote:
> I've 3GB RAM on my (hosting) server.
> When I last checked with 'free', I realised that it had some KB of swap
> used, while having >2GB of RAM unused:
> 
> --
> [root@ns1 mail]# free
>              total       used       free     shared    buffers     cached
> Mem:       3115152     969056    2146096          0     163456     303584
> -/+ buffers/cache:     502016    2613136
> Swap:      1052152          8    1052144
> --
> 
> I assume that there has been a peak in usage.
> How do I check what app/site sucked the RAM?

That's completely normal.  The kernel will always try to use as much memory
as it can spare for I/O buffering.  If buffer memory gets heavily fragmented,
it'll use a bit of swap space while it defragments.  The performance impact
is negligible and it'll happen no matter how much RAM you have.  After the
memory frees up, the swap space will remain in use because fetching from
swap is done lazily (i.e. on-demand).

- -- 
 Daniel Franke         [log in to unmask]         http://www.dfranke.us
 |----| =|\     \\\\    
 || * | -|-\---------   Man is free at the instant he wants to be. 
 -----| =|  \   ///     --Voltaire
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF82GxKTA17JAC/eYRAisBAJ4zTai95UhmUWEcXcN0Vx9lWWWDrACcDGaF
7N2ZKmCyoMhqCjSgmW365gE=
=mdns
-----END PGP SIGNATURE-----