Re: Monitoring swapping ...
Re: Monitoring swapping ...
- Subject: Re: Monitoring swapping ...
- From: Peter O'Gorman <email@hidden>
- Date: Tue, 10 Jul 2007 16:16:39 -0500
On Tue, 2007-07-10 at 12:51 -0700, Jay Reynolds Freeman wrote:
> I am not completely sure this is the correct list, but ...
>
> I have an application that uses enough memory (Gigabytes)
> that it sometimes slows way down because of swapping. I'd like
> to be able to tell the user when that happens, so the user will not
> give up in disgust. My application is threaded, and the swapping
> generally takes place in one particular thread, so I could in
> principle have another thread monitor and report. But I am
> not familiar enough with low-level Unix memory-management stuff
> to know whether there is any way to track what is going on, or
> even where to start to look.
>
> Can anyone offer advice or suggestions?
>
See the man page for getrusage.
There are very likely ways that you can reduce swapping in your
application. You should look into that first.
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden