vm, swap limits
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > vm, swap limits




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    vm, swap limits  
yirg


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-20-06 06:18 PM

(1) vm limits

I need to determine programmaticly the true actual vm limits for a
process.

getrlimit() is often not helpful here because it can return
RLIM_INIFINITY. But, it's obvious that a process doesn't have infinite
resource.

For example, suppose RLIMIT_AS shows as RLIMIT_INFINITY, how can I find
out the actual address space limit is? I think this is particulary
important as we move to 64 bit machines which, obviously, allow for
larger address space.

In my own, but much older, kernel experience there usually was a
#define or confiugartion variable for these settings.

(2) swap info

How can I determine programmatically how big the swap is and how much
free. I know this information must be available because it's returned
by vmstat(1).

On linux you can get this back from sysinfo(2), but this apparently
isn't supported on Solaris or AIX. sysconf(2) doesn't seem to return
any of this info, vm or swap, at all.

(3) which systems do I need this info for?

Linux, Solaris, AIX, HP-UX. But I'll take whatever I can get!

Thanks.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:23 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register