memory usage

Charles Shannon Hendrix shannon at widomaker.com
Fri Sep 8 10:11:55 PDT 2006


I have a question about memory usage on FreeBSD-sparc64.

I have a process table which looks like this on a FreeBSD 6.1 server,
a Sun Ultra 2/300:

  PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
52906 www         1   4    0 83888K  9792K accept 1   0:00  0.00% httpd
52907 www         1   4    0 83888K  9792K accept 1   0:00  0.00% httpd
52905 root        1  96    0 83840K  9752K select 0   0:01  0.00% httpd
52964 mysql       1  96    0 56424K 29104K select 0   0:02  0.00% mysqld
52849 shannon     1  96    0 29864K  3944K select 0   0:00  0.00% sshd
52814 shannon     1  96    0 29864K  3944K select 1   0:00  0.00% sshd
52847 root        1   4    0 29864K  3872K sbwait 1   0:00  0.00% sshd
52812 root        1   4    0 29864K  3872K sbwait 0   0:00  0.00% sshd
 4317 root        1  96    0 21768K  2920K select 0   0:03  0.00% svnserve
35260 root        1  96    0 18856K  3016K select 0   0:16  0.00% sshd
 8830 root        1  96    0 18520K  7808K select 0   5:00  0.00% perl5.8.8
24861 root        1   8    0 17472K  1728K wait   0   0:00  0.00% login
52860 root        1   8    0 17440K  1656K wait   1   0:00  0.00% su
52850 shannon     1  20    0 10144K  3616K pause  1   0:00  0.00% tcsh
52815 shannon     1  20    0 10144K  3608K pause  1   0:00  0.00% tcsh
52861 root        1   5    0 10016K  3464K ttyin  0   0:00  0.00% csh
25425 shannon     1   5    0  9744K  3536K ttyin  1   0:01  0.00% tcsh

To me those numbers are a bit high, but this is my first time running
FreeBSD instead of Solaris on 64-bit SPARC, so I didn't know what to
expect.  Memory usage for roughly the same processes wasn't this high
under Solaris 10, in some cases nowhere near as high.

The machine runs great, I just wanted to know if was normal or not.

The apache build is 1.x with PHP and about 5 other modules, nothing
fancy.

Still, 30MB for sshd seems pretty high even though that is just the
virtual size. 

Is it something about the sparc64 libraries that pushes the virtual
sizes much higher than with 32-bit sparc?

Could I make any significant savings by doing some critial builds with a
newer version of gcc?

I'm not worried right now, mostly just curious.






-- 
shannon "AT" widomaker.com -- ["People should have access to the data which
you have about them.  There should be a process for them to challenge any
inaccuracies." -- Arthur Miller]


More information about the freebsd-sparc64 mailing list