Re: [PATCH net-next v1] net: use a per task frag allocator

2012-09-22 Thread David Miller
From: Eric Dumazet Date: Fri, 21 Sep 2012 23:11:11 +0200 > On Fri, 2012-09-21 at 13:27 -0700, Vijay Subramanian wrote: >> I get the following compile error with the newer version of the patch >> >> net/sched/em_meta.c: In function ‘meta_int_sk_sendmsg_off’: >> net/sched/em_meta.c:464: error: ‘st

Re: [PATCH net-next v1] net: use a per task frag allocator

2012-09-22 Thread Eric Dumazet
On Fri, 2012-09-21 at 13:27 -0700, Vijay Subramanian wrote: > I get the following compile error with the newer version of the patch > > net/sched/em_meta.c: In function ‘meta_int_sk_sendmsg_off’: > net/sched/em_meta.c:464: error: ‘struct sock’ has no member named > ‘sk_sndmsg_off’ > make[1]: *** [

Re: [PATCH net-next v1] net: use a per task frag allocator

2012-09-21 Thread Eric Dumazet
On Thu, 2012-09-20 at 17:48 -0400, David Miller wrote: > > I like this a lot and I look forward to your upcoming changes to > convert the other two sk_sndmsg_page users as well, but I can't > apply this to net-next just yet. > Sure, I was not expecting a merge at this early stage. > The questi

Re: [PATCH net-next v1] net: use a per task frag allocator

2012-09-20 Thread David Miller
From: Eric Dumazet Date: Wed, 19 Sep 2012 18:56:01 +0200 > From: Eric Dumazet > > We currently use a per socket page reserve for tcp_sendmsg() operations. > > This page is used to build fragments for skbs. > > Its done to increase probability of coalescing small write() into > single segments

[PATCH net-next v1] net: use a per task frag allocator

2012-09-19 Thread Eric Dumazet
From: Eric Dumazet We currently use a per socket page reserve for tcp_sendmsg() operations. This page is used to build fragments for skbs. Its done to increase probability of coalescing small write() into single segments in skbs still in write queue (not yet sent) But it wastes a lot of memory