linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* cgroups and overcommit question
@ 2011-01-12 15:40 Evgeniy Ivanov
  2011-01-13  1:57 ` Daisuke Nishimura
  0 siblings, 1 reply; 4+ messages in thread
From: Evgeniy Ivanov @ 2011-01-12 15:40 UTC (permalink / raw)
  To: linux-mm

Hello,

When I forbid memory overcommiting, malloc() returns 0 if can't
reserve memory, but in a cgroup it will always succeed, when it can
succeed when not in the group.
E.g. I've set 2 to overcommit_memory, limit is 10M: I can ask malloc
100M and it will not return any error (kernel is 2.6.32).
Is it expected behavior?

-- 
Evgeniy Ivanov

--
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/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2011-01-13 12:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-12 15:40 cgroups and overcommit question Evgeniy Ivanov
2011-01-13  1:57 ` Daisuke Nishimura
2011-01-13  3:04   ` Balbir Singh
2011-01-13 12:24     ` Evgeniy Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).