RE: [PATCH] ftruncate on huge page couldn't extend hugetlb file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Gibson wrote on Wednesday, March 08, 2006 4:23 PM
> > But you already make reservation at mmap time.  If you reserve it again
> > when extending the file, won't you double count?
> 
> Well, I'd generally expect extending truncate() to come before mmap(),
> but in any case hugetlb_extend_reservation() is safe against double
> counting (it's idempotent if called twice with the same number of
> pages).  The semantics are "ensure the this many pages total are
> guaranteed available, that is, either reserved or already
> instantiated".

It's kind of peculiar that kernel reserve hugetlb page at the time of
extending truncate.  Maybe there is a close correlation between mmap
size to the file size.  But these two aren't the same and and shouldn't
be mixed.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" 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.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux