On 2014-04-01 11:35, Hugh Williams wrote:
> Hi Bart,
>
> You should set the NumberOfBuffers based on the amount of free memory
> available on the system , thus about 7.1GB * 0.66 / 8K (each buffer is
> 8K) = 585750 buffers ...
Thanks for clarifying this, Hugh. However, after a discussion with a
colleague of mine, I'm not sure anymore about my 'free memory available
on the system'.
My guess was that I simply could look at 'free' number in the 'Mem' line
of the top output:
Mem: 24680200k total, 18088328k used, 6591872k free, 60096k buffers
Swap: 542716k total, 14724k used, 527992k free, 17495716k cached
Here, that would be '6591872k free'. However, my colleague pointed me
to the output of 'free -m':
$ free -m
total used free shared buffers cached
Mem: 24101 17664 6437 0 58 17085
-/+ buffers/cache: 519 23581
Swap: 529 14 515
According to him, I should also add the 'buffers' and 'cached' numbers.
A quick Google search resulting in [1] confirms this. So based on the
above output, my 'free memory available on the system' would be:
6437 MB (free) + 58 MB (buffers) + 17085 MB (cached) = 23580 MB
and my number of buffers (according to your formula):
23.6GB * 0.66 / 8K = 1945350 buffers
Are we correct? Could you let me know what is the most exact way to
find out the 'amount of free memory available on the system', in order
to set the NumberOfBuffers parameter as optimal as possible?
Kind regards,
Bart
[1]
http://blog.scoutapp.com/articles/2010/10/06/determining-free-memory-on-linux
------------------------------------------------------------------------------
_______________________________________________
Virtuoso-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/virtuoso-users