netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Proposed fixes for tcp memory pressure
@ 2011-12-15  9:34 Glauber Costa
       [not found] ` <1323941672-14324-1-git-send-email-glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Glauber Costa @ 2011-12-15  9:34 UTC (permalink / raw)
  To: davem-fT/PcQaiUtIeIZ0/mPfg9Q
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	netdev-u79uwXL29TY76Z2rM5mHXA, cgroups-u79uwXL29TY76Z2rM5mHXA

Hi,

I propose the following two fixes for the issues we're having in
linux-next.

The first one just moves the definition out of the CONFIG_INET,
and should fix the compile problems with allnoconfig.

The second one is a bit bigger, and takes away the socket
registration functions. As I've explained in the Changelog,
I believe this to be the saner way to do it. We need to do allocations
in both create and init time. 

This was compile tested with 4 different randconfigs, CGROUPS off,
KMEM cgroup off, INET off, all them on, and boot tested with
everything on.

Thanks.

Glauber Costa (2):
  Move limit definitions outside CONFIG_INET
  Explicitly call tcp creation and init from memcontrol.c

 include/linux/memcontrol.h   |    2 +-
 include/net/sock.h           |    2 --
 include/net/tcp_memcontrol.h |   19 ++++++++++++++++++-
 mm/memcontrol.c              |   13 ++++---------
 net/core/sock.c              |   37 -------------------------------------
 net/ipv4/tcp_memcontrol.c    |   11 ++++++-----
 6 files changed, 29 insertions(+), 55 deletions(-)

-- 
1.7.6.4

--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2011-12-16  2:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-15  9:34 [PATCH 0/2] Proposed fixes for tcp memory pressure Glauber Costa
     [not found] ` <1323941672-14324-1-git-send-email-glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2011-12-15  9:34   ` [PATCH 1/2] Move limit definitions outside CONFIG_INET Glauber Costa
     [not found]     ` <1323941672-14324-2-git-send-email-glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2011-12-15 16:59       ` David Miller
2011-12-15  9:34   ` [PATCH 2/2] Explicitly call tcp creation and init from memcontrol.c Glauber Costa
     [not found]     ` <1323941672-14324-3-git-send-email-glommer-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2011-12-15 16:13       ` KAMEZAWA Hiroyuki
     [not found]         ` <20111216011316.8d58bc8f.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2011-12-15 16:18           ` Glauber Costa
2011-12-15 16:57         ` David Miller
2011-12-15 22:20         ` KAMEZAWA Hiroyuki
2011-12-16  2:06           ` Glauber Costa
2011-12-15 17:00     ` David Miller
     [not found]       ` <20111215.120028.532844419499092747.davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org>
2011-12-15 21:11         ` Glauber Costa
     [not found]           ` <4EEA6288.1080405-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2011-12-15 22:44             ` David Miller

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).