1836561 Members
1768 Online
110102 Solutions
New Discussion

Memory usage dubt

 
Filosofo
Regular Advisor

Memory usage dubt

Hello,
I have a N4000, with install 4GB of Physical memory.
There are not particular processes running, and the server use 46% of the memory.
I attach a file with glance memory report output and kmeminfo -V output.

I hope that you can help me.

Thanks

Filo
Sistem engeneer expert
7 REPLIES 7
Filosofo
Regular Advisor

Re: Memory usage dubt

The attach.....


Filo
Sistem engeneer expert
Stefan Farrelly
Honored Contributor

Re: Memory usage dubt

There is no attachment ?

2 things to check;

1. vx_ninode kernel parameter should not be set to 0 - or else it can grow huge. Check with;
kmtune | grep vx_ninode

Set it to something like 5000 to 10000, rebuild you kernel and reboot.

2. dbc_max_pct and dbc_min_pct should also not be 0, or set to anything large. For 4GB of ram dbc_min_pct should be set to around 2 (2%) and dbc_mac_pct to 10 (10% or 400MB). If not set them, build a new kernel, and reboot.

This should free up lots of RAM.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Stefan Farrelly
Honored Contributor

Re: Memory usage dubt

Your buffer cache (dbc_max/min) looks good at only 400MB;

Bufcache = 104857 409.6m 10% for buffer cache

But your kmeminfo doesnt show the vx_ninode size, eg;

Dynamic = 235399 919.5m 11% Kernel dynamic memory
Arenas = 177297 692.6m 8% Kernel arenas
vx_buffer_cache = 72576 283.5m 3%

vx_ninod kernel parameter = vx_buffer_cache above. How big is yours ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
Filosofo
Regular Advisor

Re: Memory usage dubt

kmtune -l -q vx_ninode
Parameter: vx_ninode value: 0

Thanks

Filo
Sistem engeneer expert
Stefan Farrelly
Honored Contributor

Re: Memory usage dubt

As I said, if vx_ninode = 0 then this cache can grow into Gigabytes! So set it to 5000-10000 and rebuild your kernel and reboot. This will fix your memory issue.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Filosofo
Regular Advisor

Re: Memory usage dubt

Why from kmeminfo I see User memory is 571 Mb and from glance 1,17 Gb?

Thanks

Filo
Sistem engeneer expert
Stefan Farrelly
Honored Contributor

Re: Memory usage dubt

I had this same question some time ago, the answer was glance is not that relibale. kmeminfo is far more reliable. I think the glance total is including other things.
Im from Palmerston North, New Zealand, but somehow ended up in London...