Hi Neil, Sorry that for my previous misconfiguration of email agent, I missed this email.
> This looks alot better. One minor comment, the sigbus handler, you should > probably store the previous bus handler and restore it after you map > all the > hugepages you want (lest you overwrite something an application is > doing with > sigbus). > I did not catch your point. I did store it "static struct sigaction action_old" and recover it after mapping all the hugepages. Can you give more details on this? Thanks, Jianfeng