Accessing memory out of set memory limit
Accessing memory out of set memory limit
- Subject: Accessing memory out of set memory limit
- From: "Mayank Varshney" <email@hidden>
- Date: Fri, 14 Mar 2008 11:48:17 +0530
Hello all,
I am trying to set memory limit using setrlimit function function using
resources RLIMIT_AS , RLIMIT_RSS , RLIMIT_DATA seperately . I also tried to
limit memory available to a program using ulimit . But even after that I am
able to access memory more than the allocated limit , say I set virtual
memory using setrlimit (RLIMIT_AS , limit) to 10 MB(say) ,
and if i allocate 100 MB (say) memory , it is still allocated . Is there any
way i can check for this overflow or i can limit memory usage .
Any pointers or help in this regard would be highly appreciated .
Thanks and regards
Mayank Varshney
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden