In HP/UX, the dmesg command can display memory information:
In IBM's AIX dialect of UNIX, you must issue two separate commands. You start with the lsdev command followed by the lsattr command to display the amount of memory on a server. First, execute lsdev to list all devices. Then pipe that output through grep to filter out everything not related to memory. That will get you the name of the memory devices that are installed. For example:
Here you can see that mem0 is the name of the memory device. Now that you have the name, you can issue the lsattr 朎l command to see the amount of memory on the server. In the following example, the server has 3GB of RAM installed.
You must issue the lsattr 朎l command separately for each memory device.
The prtconf command can also be used on all Solaris servers to quickly see the amount of available memory:
In Linux, the free command can be used to quickly display the amount of RAM memory on the server:
While each dialect has unique mechanisms and commands to display RAM, most UNIX servers support the top utility. The top utility is invoked by issuing the top command from the UNIX prompt. This will display the total amount of RAM available, and will also show the usage of both RAM and virtual memory:
In this example, we see from the top utility that we have 257,568 kilobytes of RAM on the server. The top utility is also great for seeing the top CPU consumer tasks on your server.
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/16158219/viewspace-588896/，如需转载，请注明出处，否则将追究法律责任。