On Solaris I can use
mpstat to see the
smtx (i.e., spins on mutex or in other words locks not acquired on the first try) value. This value increasing indicates that swap is being hit too frequently and indicates that you need more RAM.
The output of
mpstat on Linux is not at all like Solaris. Is there any way I can see this (or an equivalent/related) value?