Community


All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Memory and nrservice
PostPosted: Wed Oct 21, 2009 2:27 am 
Offline

Joined: Sat Oct 10, 2009 6:21 am
Posts: 22
Is this normal? Running latest NR Network Explorer on Ubuntu 9.04

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2435 root 20 0 120m 4496 3168 S 0 0.9 0:09.70 nrservice

Kind Regards
/Bernt


Top
 Profile  
 
 Post subject: Re: Memory and nrservice
PostPosted: Wed Oct 21, 2009 11:25 am 
Offline

Joined: Sun Nov 16, 2008 6:41 am
Posts: 1878
It depends. The virtual memory would be normal, it would be better to provide vmstat values. The more important factor needs to monitor is Page-outs. It would be better to use vmstat to monitor your system and pay more attention to the "free", "si" and "so" values.

The free column shows the amount of free memory, si shows page-ins and so shows page-outs. In this example, the so column is zero consistently, indicating there are no page-outs.

BTW, there is something interesting on Linux, in terms of this case.

1. Linux uses a technique called "demand paging" where the virtual memory of a process is brought into physical memory only when a process attempts to use it. And it counts everyting, code, data and shared libs, in the virtual address space.

2. When the kernel detects that memory is running low, it attempts to free up memory by paging out. Though this may happen briefly from time to time, if page-outs are plentiful and constant, the kernel can reach a point where it's actually spending more time managing paging activity than running the applications, and system performance suffers. This woeful state is referred to as thrashing.

Correct me if I was wrong.

Thanks,
KevinZ - NeoRouter team


Top
 Profile  
 
 Post subject: Re: Memory and nrservice
PostPosted: Thu Oct 22, 2009 5:30 am 
Offline

Joined: Sat Oct 10, 2009 6:21 am
Posts: 22
Thanks for the reply.

After a few hours it looks like this.

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4267 root 20 0 448m 3132 1288 S 0 0.6 5:18.62 nrservice

The Swap is now using 35108k. It use to be 0k.

/Bernt


Top
 Profile  
 
 Post subject: Re: Memory and nrservice
PostPosted: Thu Oct 22, 2009 8:21 am 
Offline

Joined: Sun Nov 16, 2008 6:41 am
Posts: 1878
It's normal and you don't need to care about the VIRT, but the RES.
The RES indicates the real physical memory used by an application, VIRT does not use your physical memory and will not effects other applications.

You can use top to keep monitoring the physical memory usage.
From the information you provided, the RES was 4496KB and later is 3132KB. It's normal.

If you really want to know what's counted in the VIRT, you can use:
pmap or cat /proc/PID/maps to find out.

BTW, there are some books discussing the virtual memory management on Linux. Hope it helps.

Thanks,
KevinZ - NeoRouter team


Top
 Profile  
 
 Post subject: Re: Memory and nrservice
PostPosted: Thu Oct 22, 2009 8:46 am 
Offline

Joined: Sat Oct 10, 2009 6:21 am
Posts: 22
Ok, sounds good. Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: