Subject: Re: Kernel resident memory size is quite large
To: None <jefbed@netbsd.org, port-amd64@netbsd.org>
From: rudolf <netbsd@eq.cz>
List: port-amd64
Date: 04/04/2006 12:26:06
This is a multi-part message in MIME format.
--------------030401040902030403060502
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

antiright@gmail.com wrote:
>> Memory: 452M Act, 151M Inact, 5252K Wired, 21M Exec, 484M File, 54M Free
>>
>>   PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
>>    11 root      18    0     0K  230M syncer     3:30  0.00%  0.00% [ioflush]
>>     2 root      10    0     0K  230M usbevt     0:00  0.00%  0.00% [usb0]
>>     3 root      10    0     0K  230M usbtsk     0:00  0.00%  0.00% [usbtask]
>>     4 root      10    0     0K  230M usbevt     0:00  0.00%  0.00% [usb1]
>>     5 root      -6    0     0K  230M atath      0:00  0.00%  0.00% [atabus0]
>>     6 root      -6    0     0K  230M atath      0:00  0.00%  0.00% [atabus1]
>>     7 root      -6    0     0K  230M atath      0:00  0.00%  0.00% [atabus2]
>>     8 root      -6    0     0K  230M atath      0:00  0.00%  0.00% [atabus3]
>>     9 root      -6    0     0K  230M sccomp     0:00  0.00%  0.00% [atapibus0]
>>     0 root     -18    0     0K  230M schedule   0:00  0.00%  0.00% [swapper]
>>    10 root     -18    0     0K  230M pgdaemon   0:00  0.00%  0.00% [pagedaemon]
>>    12 root     -18    0     0K  230M aiodoned   0:00  0.00%  0.00% [aiodoned]
> Has anyone else experienced such a large resident memory size, as used by
> kernel processes?  If other people are claiming that such processes on
> their amd64 boxes consume only ~8MB, then I am concerned.  
> 
> -Jeff
> 

Hi,

it's above 240MB here, but I'm not sure if it's because I bumped some 
sysctl settings:
kern.maxvnodes=116900
kern.maxproc=2124
kern.maxfiles=16000

# uname -v
NetBSD 3.0 (GENERIC.MP) #0: Sun Dec 18 21:55:15 UTC 2005 
builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/amd64/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/amd64/compile/GENERIC.MP

Recently I was bitten by "panic: pmap_enter: no pv entries available" 
(upgrade to 3.0_STABLE pending), but else I don't remember any other 
problems after 3.0 release on this machine.

r.

--------------030401040902030403060502
Content-Type: text/plain;
 name="top_hiresident.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="top_hiresident.txt"

load averages: 14.85, 14.53, 13.07                                                                                                                    11:11:33
458 processes: 2 runnable, 454 sleeping, 2 on processor
CPU0 states: 26.6% user,  0.0% nice, 27.9% system,  5.0% interrupt, 40.5% idle
CPU1 states: 38.5% user,  0.0% nice, 24.3% system,  0.0% interrupt, 37.2% idle
Memory: 992M Act, 508M Inact, 9808K Wired, 17M Exec, 1086M File, 36M Free
Swap: 12G Total, 12G Free

  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
   17 root      -6    0     0K  243M raidio/0  26:12  0.93%  0.93% [raidio3]
   29 root      -6    0     0K  243M raidio/0  37:25  0.78%  0.78% [raidio4]
   15 root      -6    0     0K  243M RUN/1     26:06  0.73%  0.73% [raidio2]
   13 root      -6    0     0K  243M raidio/0  15:27  0.34%  0.34% [raidio0]
   16 root      -6    0     0K  243M rfwcon/0   5:52  0.05%  0.05% [raid3]
   12 root      -6    0     0K  243M rfwcon/0   2:21  0.05%  0.05% [raid0]
   19 root      18    0     0K  243M syncer/0  38:11  0.00%  0.00% [ioflush]
   20 root     -18    0     0K  243M aiodon/0   8:06  0.00%  0.00% [aiodoned]
   14 root      -6    0     0K  243M rfwcon/0   6:24  0.00%  0.00% [raid2]
   28 root      -6    0     0K  243M rfwcon/0   6:23  0.00%  0.00% [raid4]
   18 root     -18    0     0K  243M pgdaem/0   3:45  0.00%  0.00% [pagedaemon]
    0 root     -18    0     0K  243M schedu/0   0:29  0.00%  0.00% [swapper]
 1228 root       2    0  1416K 2400K select/0   0:18  0.00%  0.00% sendmail
  537 root       2    0   204K  956K kqread/0   0:15  0.00%  0.00% syslogd
14000 root       2    0    60K  744K netcon/0   0:15  0.00%  0.00% tcpserver
  855 root       2    0  3436K 4392K select/1   0:11  0.00%  0.00% <ruby>
  200 root       2    0    64K  696K piperd/0   0:03  0.00%  0.00% <multilog>
 1817 root      10    0   248K  912K nanosl/0   0:02  0.00%  0.00% cron
    1 root      10    0    76K  904K wait/0     0:02  0.00%  0.00% init
25860 root      28    0   528K 1584K CPU/0      0:00  0.00%  0.00% top
    2 root      14    0     0K  243M crypto/0   0:00  0.00%  0.00% [cryptoret]
    4 root      10    0     0K  243M usbtsk/0   0:00  0.00%  0.00% [usbtask]
    5 root      10    0     0K  243M usbevt/0   0:00  0.00%  0.00% [usb1]
    3 root      10    0     0K  243M usbevt/0   0:00  0.00%  0.00% [usb0]

--------------030401040902030403060502--