non-pageable memory

Submitted by s133pl355
on March 20, 2007 - 8:21am

Hi All - Is it possible to define a user level process's memory pages as non pageable?

mlock/mlockall

strcmp
on
March 21, 2007 - 12:23am

yes. why do you ask?

performance

s133pl355
on
March 22, 2007 - 9:56am

cause I'm writing high performance user-level scheduler and need to reduce as much overhead as possible including page_faults. Thanks for the hint.

Question 2 - Malloc does not guarantee that it will assign the same virtual addr every time you run the same program I think its to do with protecting against buffer overflow attack. In my scenario I have the same program running on different machines and wish to align the malloced regions on both machines. With the current implementation of malloc its not possible. Is there work around maybe a lower level allocation function that does not arbitrary offset the virtual addrs?

brk/sbrk

s133pl355
on
March 22, 2007 - 11:54am

ok I think I'vw managed by using sbrk

If I were you, I'd let

Anonymous (not verified)
on
April 23, 2007 - 2:29pm

If I were you, I'd let malloc allocate whatever memory it wants, and use deltas instead of pointers. This way you make you data structure location independant.

just my $0.02

use mmap instead of

techvivek
on
April 24, 2007 - 4:31am

use mmap instead of malloc

and use map_locked and map_fixed

man mmap for ore info....

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.