Re: [RFC][PATCH] hugetlbfs read support

Nishanth Aravamudan
2007-07-10T15:28:47Z

On 10.07.2007 [10:17:20 +0100], Christoph Hellwig wrote:
> On Mon, Jul 09, 2007 at 12:28:11PM -0700, Badari Pulavarty wrote:
> > Comments/flames ?
> >
> > Thanks,
> > Badari
> >
> > Support for reading from hugetlbfs files. libhugetlbfs lets
> > application text/data to be placed in large pages. When we do that,
> > oprofile doesn't work - since it tries to read from it.
> >
> > This code is very similar to what do_generic_mapping_read() does,
> > but I can't use it since it has PAGE_CACHE_SIZE assumptions.
> > Christoph Lamater's cleanup to pagecache would hopefully give me all
> > of this.
>
> The code looks fine, but I really hate that we need it all all. We
> really should make the general VM/FS code large page aware and get rid
> of this whole hack called hugetlbfs..

I agree and sounds like something to bring up at KS (again?) or the
VM/FS summit. But, for now, hugetlbfs is the supported interface and
libhugetlbfs has run into this issue supporting one of its features. So
I would like to see this make it in.

Just my $0.02 as a libhuge developer.

Thanks,
Nish

--
Nishanth Aravamudan <nacc@us.ibm.com>
IBM Linux Technology Center