William Lee Irwin III wrote: >It's capable(CAP_IPC_LOCK) || in_group_p(0), not current->uid == 0. >It will barf if you ask for more than either one of those limits. It >will also barf if you ask for an amount not a multiple of the hugepage >size. Please show the test program's code and strace the test program >to determine what response it's getting. > > > I attached the test pgm. It is nearly the same as shown in Documentation/vm/hugetlbpage.txt If you run it as root, it allocates 1 Hugepage, if run as user, it fails. roesrv01:~ # ./a.out shmid: 0x220004 shmaddr: 0x40167000 Starting the writes: .... Starting the Check...Done. roesrv01:~ # su - jochen jochen@roesrv01:~> ./a.out Failure:: Operation not permitted I guess, a strace is not necessary. The pgm has only the main function and only one position where it says "Failure" What do I have to do to make this pgm run as an ordinary user with a stock kernel? Curious... Jochen