[systemd-devel] autofs and hugetlbfs on ARM

Bjoern Buerger b.buerger at pengutronix.de
Tue Jun 28 07:03:35 PDT 2011


* Kay Sievers (kay.sievers at vrfy.org) [110628 12:45]:
> On Tue, Jun 28, 2011 at 09:43, Michael Olbrich <m.olbrich at pengutronix.de> wrote:
> > At first /dev/hugepages exists. If I run "ls /dev/hugepages",
> > "mount[494]: mount: unknown filesystem type 'hugetlbfs'" is logged and
> > ls says "ls: /dev/hugepages: No such device".
> > Afterwards /dev/hugepages is gone.
> 
> That doesn't sound too bad. :) It doesn't hang the process that tries
> to access the mountpoint? That's what others have seen.

Besides that, the following is just ugly:

root at heatball:~# ls -aln /dev/| grep huge
ls: cannot access /dev/hugepages: No such device
d?????????  ? ? ?         ?            ? hugepages

> You should probably just not install
> /lib/systemd/system/dev-hugepages.mount to avoid the issue.

While this is probably the best solution for the deeply embedded
case, it would probably not be apropriate for e.g. Debian.

I solved the issue with ConditionPathExists=/sys/kernel/mm/hugepages
for now. 

However: It breaks, if the kernel module isn't loaded. 

Bjørn

-- 
Pengutronix e.K.                           | Bjørn Bürger                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5002 |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


More information about the systemd-devel mailing list