X dies - out of swap space

David Banning david at skytracker.ca
Fri Apr 11 21:03:38 PDT 2003


> It would have been adjusted/set when you setup the disk at install time
> using the disklabel editor.  Later, it is probably initialized from an
> entry in your /etc/fstab file.  

I remember setting that up, but isn't that setup just for disk space,
as the entries in fstab are all pointing to the difference slices of
the drive?


However, you appear to have somewhere
> near 256MB physical RAM and 100MB of swap space - for a total of around
> 350MB virtual memory.  This is likely enough for most thing you may be
> doing.  Your best bet at this point may be in attempting to identify
> which process(s) is hogging all your virutual memory.  Maybe you could
> open an xterm window and launch `top` and leave it running and
> frequently look over to see which processes are using the most memory.
> You might also want to sort top by memory usage.  You can do this at
> run-time, but also at launch with `top -o size`.

Yes, I have been doing that, but the problem is that I don't see
swap space from that command. In the following it shows that I am using
presently 34M of swap, but how do I tell from the entries below what
is using swap from what is using other memory? 

"man top" states;

OPTIONS
       -S     Show system processes in  the  display.   Normally,
              system  processes such as the pager and the swapper
              are not shown.  This option makes them visible.

but still I cannot identify swap from others.

last pid: 30466;  load averages:  0.00,  0.01,  0.00    up 1+10:03:43  23:56:31
79 processes:  1 running, 78 sleeping
CPU states:  0.0% user,  0.0% nice,  1.6% system,  0.4% interrupt, 98.1% idle
Mem: 155M Active, 24M Inact, 33M Wired, 9988K Cache, 35M Buf, 25M Free
Swap: 100M Total, 34M Used, 66M Free, 33% Inuse

  PID USERNAME    PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
22111 david         2   0 44280K 41924K select   0:17  0.05%  0.05% XFree86
  193 mysql         2   0 29940K  3168K poll     0:02  0.00%  0.00% mysqld
  248 www           2   0 24044K 14896K poll     0:05  0.00%  0.00% python2.1
  161 nobody       18   0 22772K 16388K lockf    0:02  0.00%  0.00% httpd
  162 nobody       18   0 16976K 10572K lockf    0:02  0.00%  0.00% httpd
 1252 nobody       18   0 15080K  8716K lockf    0:01  0.00%  0.00% httpd
 1708 nobody       18   0 14964K  8624K lockf    0:01  0.00%  0.00% httpd
 1709 nobody        2   0 14936K  8576K sbwait   0:01  0.00%  0.00% httpd
 9650 nobody        2   0 14684K  8352K select   0:00  0.00%  0.00% httpd
  164 nobody       18   0 14664K  8084K lockf    0:01  0.00%  0.00% httpd
  165 nobody       18   0 14392K  8052K lockf    0:02  0.00%  0.00% httpd
 1251 nobody       18   0 14148K  7488K lockf    0:01  0.00%  0.00% httpd
  163 nobody       18   0 14008K  7648K lockf    0:01  0.00%  0.00% httpd
  209 root          2   0 13052K  4024K accept   0:02  0.00%  0.00% perl
  155 root          2   0  9716K  2780K select   0:04  0.00%  0.00% httpd




More information about the freebsd-questions mailing list