Kbase 7659: How to determine swap size on a Unix box
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/05/1998 |
|
How to determine swap size on a Unix box
920609-ptg02The unix command 'dd' can be used to determine the amount of swap
space a customer has, if it is unknown.
In order to do this you need to know the name of the customers
swap device (often /dev/swap). Then using dd, copy the file to
/dev
ull - which is a convenient unix way of merely discarding the
data.
Example:
dd if=/dev/swap of=/dev
ull bs=1024
This will copy the contents of swap in 1K block increments (bs=1024).
When finished dd will report how many blocks were copied,
giving you the size of /dev/swap in kilobytes.
Note: dd is very sensitive to spaces. Be sure to not place
spaces before or after the equal signs.
Progress Software Technical Support Note # 7659