Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To start with I am running oracle on linux. I just did a query that I thought take, at most, 1 minute as I have done this in the past. However, it took 17 minutes. During that time I noticed a lot of "swap in" in the vmstat output meaning the data was coming from swap. As soon as the query was finished the "swap in" went to zero so I reason that all the swaping was to my process. I also noticed the "sar -P ALL" command showing a large value for %iowait (for the CPU my process was using) which I would expect under the circumstances.
So my question is: Can I monitor how much swap is being read (swap in) by a particular process? For example, I would have liked to see how much swap was being used by process 1835. Even better I would also like to see the amount of time it was taking to read in the swap.
Any help or articles for me to read are greatly appreciated.
Thanks,
Michael Cunningham
So you didn't notice vmstat was mentioned - in the initial post ?.
As for the OP, swap usage is a symptom of a problem, you should be looking for the cause. If Oracle is the primary (active) workload of this machine, it shouldn't be swapping. At all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.