I just listened to a talk by Dave Hansen at the Linux Collaboration Summit about hugetlbfs and I mentioned a little trick I used to kind of automate this without needing to be directly involved. He suggested I send it in, so here it is: attached is a automount program mount that sets up the hugetlbfs and permissions for the user who requests it by simply triggering a "size" mount below /huge. If nr_hugepages allocation was successful, the mount appears - otherwise not. You have to turn off the negative-timeout to support a retry on a quick turnaround, e.g in /etc/auto.master:
/huge /etc/auto.huge --timeout=30 --negative-timeout=0 To use, simply trigger an access to /huge/<size>, where size can be KB, MB, GB or no units, implying the direct nr_hugepages you want. Daryl
auto.huge.pl
Description: Perl program
------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com
_______________________________________________ Libhugetlbfs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel
