ramdisk using hugetlb page ram

Javier Sanz <[email protected]>
Newsgroups org.kernel.vger.linux-newbie
Message-ID <CAOLSsAwHFh=V1r1d6k-=mLgXdmCC2tR=Cy1NuJV7Z5q=kh3dCw@mail.gmail.com>
Hello,

I am trying to use hugetlb to make a faster ramdisk .. but ...

I do,
#mount -t hugetlbfs none /media/ramdisk -o size=256M,mode=0777
#df
none 262144 0 262144 0% /media/ramdisk

all seem ok ...
going to the ram disk , and
#touch a.txt
-rw-r--r-- 1 root root 0 Aug 22 22:22 a.txt

ok, but

# ls > a.txt
ls: write error: Invalid argument

i cannot write any file inside .. why can i create?

why can i not use hugetlb for working with ramdisk?

anonymous pages and theses stuffs?

tx
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.