linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC] OVERCOMMIT_ALWAYS extension
@ 2005-10-17 17:30 Badari Pulavarty
  2005-10-17 18:13 ` Hugh Dickins
  0 siblings, 1 reply; 19+ messages in thread
From: Badari Pulavarty @ 2005-10-17 17:30 UTC (permalink / raw)
  To: linux-mm

Hi MM-experts,

I have been looking at possible ways to extend OVERCOMMIT_ALWAYS
to avoid its abuse.

Few of the applications (database) would like to overcommit
memory (by creating shared memory segments more than RAM+swap),
but use only portion of it at any given time and get rid
of portions of them through madvise(DONTNEED), when needed. 
They want this, especially to handle hotplug memory situations 
(where apps may not have clear idea on how much memory they have 
in the system at the time of shared memory create). Currently, 
they are using OVERCOMMIT_ALWAYS system wide to do this - but 
they are affecting every other application on the system.

I am wondering, if there is a better way to do this. Simple solution
would be to add IPC_OVERCOMMIT flag or add CAP_SYS_ADMIN to
do the overcommit. This way only specific applications, requesting
this would be able to overcommit. I am worried about, the over
all affects it has on the system. But again, this can't be worse
than system wide  OVERCOMMIT_ALWAYS. Isn't it ?

Ideas ?

Thanks,
Badari

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2005-10-24 20:24 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-17 17:30 [RFC] OVERCOMMIT_ALWAYS extension Badari Pulavarty
2005-10-17 18:13 ` Hugh Dickins
2005-10-17 18:25   ` Hugh Dickins
2005-10-17 23:14     ` Badari Pulavarty
2005-10-18 16:05     ` [RFC][PATCH] " Badari Pulavarty
2005-10-19 17:56       ` Hugh Dickins
2005-10-19 18:32         ` Jeff Dike
2005-10-19 21:21           ` Badari Pulavarty
2005-10-19 22:38             ` Jeff Dike
2005-10-19 18:50         ` Badari Pulavarty
2005-10-19 19:12           ` Darren Hart
2005-10-19 20:10           ` Hugh Dickins
2005-10-19 20:47           ` Jeff Dike
2005-10-20 15:11             ` Badari Pulavarty
2005-10-20 17:27               ` Jeff Dike
2005-10-20 22:37                 ` Badari Pulavarty
2005-10-24 20:04                   ` Hugh Dickins
2005-10-24 20:22                     ` Darren Hart
2005-10-24 20:24                     ` Badari Pulavarty

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