Here are some useful Unix/Linux commands which you will find handy in your day-to-day life as an Oracle DBA. Most of these commands are just query commands and will not change / alter anything on the operating system. Commands whch can change / alter anything at operating system level are
Tru64 Unix uerf \u2013r 300 | grep \u2013i mem
Solaris prtconf | grep \u2013i mem
Linux
Memory
$ lsattr -El mem0
size 1536 Total amount of physical memory in Mbytes False
the memory had been used, here is the example,
# free
Output on Linux
"cached" memory basically are free to be used. The Linux philosophy is keeping resource idle/wasted as little as it can. Keeping the cache means that if something needs the same data again. You will notice the cached is very little during the system just rebooted, but it keeps growing if you leave it running for days.
If you want to know the memory used, please read the second line. The -/+ buffers/cache line shows how much memory is used and free from the perspective of the applications. So, for this example, we still have 25GB memory free to be used.
Pid 15012 is the process ID that has the highest memory usage. The Command indicates the command name, in this case maker4X.exe. The Inuse column (total number of pages in real memory from segments that are used by the process) shows 4783 pages (each page is 4 KB). The Pin column (total number of pages pinned from segments that are used by the process) shows 1174 pages. The Pgspace column (total number of paging-space pages that are used by the process) shows 4781 pages.
Shared Memory:
m 131072 0x58000932 --rw-rw-rw- root system 134217728 6990 47580
m
1440 11872 27654
m 131074 0xffffffff --rw------- root system 104857600 45198 45198
m 2621443 0x05c17710 --rw-r----- crpor11i oradba 368291840 25196 29384
m 1310724 0x50942e5c --rw-r----- devor11i oradba 405147648 25450 46580
Shared Memory:
m 131072 0x58000932 --rw-rw-rw- root system 134217728 6990 47580
m
m 131074 0xffffffff --rw------- root system 104857600 45198 45198
m 2621443 0x05c17710 --rw-r----- crpor11i oradba 368291840 25196 39296
m 1310724 0x50942e5c --rw-r----- devor11i oradba 405147648 25450 39290