Messages in this thread | | | From | Andi Kleen <> | Subject | Re: [PATCH] af_unix: limit unix_tot_inflight | Date | Wed, 24 Nov 2010 15:44:53 +0100 |
| |
Eric Dumazet <eric.dumazet@gmail.com> writes: > > diff --git a/net/unix/garbage.c b/net/unix/garbage.c > index c8df6fd..40df93d 100644 > --- a/net/unix/garbage.c > +++ b/net/unix/garbage.c > @@ -259,9 +259,16 @@ static void inc_inflight_move_tail(struct unix_sock *u) > } > > static bool gc_in_progress = false; > +#define UNIX_INFLIGHT_TRIGGER_GC 16000
It would be better to define this as a percentage of lowmem.
-Andi
-- ak@linux.intel.com -- Speaking for myself only.
| |