mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RE: HUGETLB commit handling.
@ 2004-04-08 21:58 Seth, Rohit
  0 siblings, 0 replies; 7+ messages in thread
From: Seth, Rohit @ 2004-04-08 21:58 UTC (permalink / raw)
  To: Andy Whitcroft, Andrew Morton, Chen, Kenneth W, Ray Bryant
  Cc: Martin J. Bligh, linux-kernel, anton, sds, ak, lse-tech, linux-ia64

Andy Whitcroft <> wrote on Thursday, April 08, 2004 9:36 AM:

> We have been looking at the HUGETLB page commit issue (offlist) and
> are close a final merged patch.  However, our testing seems to have
> thrown up an inconsistency in interface which we are not sure whether
> to fix or not.   
> 
> With normal shm segments we commit the pages we will need at shmget()
> time. 
> The real pages being allocated on demand.  With hugetlb pages we
> currently do not manage commit, but allocate them on map, shmat() in
> this case.  When we add commit handling it would seem most
> appropriate to commit the pages in shmget() as for small page
> mappings.  However, this might seem to change the semantics slightly,
> in that if there is insufficient hugepages available then the failure
> would come at shmget() and not shmat() time.      
> 
> I would contend this is the right thing to do, as it makes the
> semantics of hugepages match that of the existing small pages.  We
> are looking for a consensus as this might be construed as a semantic
> change.   
> 

IMO, doing this accounting check at shmget time seems reasonable as it
aligns the accouting semantics of normal and hugepages.


> Thoughts.
> 
> -apw
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-ia64"
> in the body of a message to majordomo@vger.kernel.org More majordomo
> info at  http://vger.kernel.org/majordomo-info.html  


^ permalink raw reply	[flat|nested] 7+ messages in thread
* HUGETLB commit handling.
@ 2004-04-08 16:35 Andy Whitcroft
  2004-04-08 22:47 ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: Andy Whitcroft @ 2004-04-08 16:35 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Chen, Kenneth W, 'Ray Bryant',
	Martin J. Bligh, linux-kernel, anton, sds, ak, lse-tech,
	linux-ia64

We have been looking at the HUGETLB page commit issue (offlist) and are
close a final merged patch.  However, our testing seems to have thrown up
an inconsistency in interface which we are not sure whether to fix or not.

With normal shm segments we commit the pages we will need at shmget() time.
The real pages being allocated on demand.  With hugetlb pages we currently
do not manage commit, but allocate them on map, shmat() in this case.  When
we add commit handling it would seem most appropriate to commit the pages
in shmget() as for small page mappings.  However, this might seem to change
the semantics slightly, in that if there is insufficient hugepages
available then the failure would come at shmget() and not shmat() time.

I would contend this is the right thing to do, as it makes the semantics of
hugepages match that of the existing small pages.  We are looking for a
consensus as this might be construed as a semantic change.

Thoughts.

-apw



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-04-13 10:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1IKJu-Zn-29@gated-at.bofh.it>
2004-04-08 17:05 ` HUGETLB commit handling Andi Kleen
2004-04-08 17:23   ` Ray Bryant
2004-04-08 17:51     ` Andi Kleen
2004-04-08 21:58 Seth, Rohit
  -- strict thread matches above, loose matches on Subject: below --
2004-04-08 16:35 Andy Whitcroft
2004-04-08 22:47 ` Andrew Morton
2004-04-13 10:20   ` Andy Whitcroft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome