Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752391Ab0KXOo7 (ORCPT ); Wed, 24 Nov 2010 09:44:59 -0500 Received: from one.firstfloor.org ([213.235.205.2]:56405 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744Ab0KXOo6 (ORCPT ); Wed, 24 Nov 2010 09:44:58 -0500 From: Andi Kleen To: Eric Dumazet Cc: Vegard Nossum , David Miller , LKML , Andrew Morton , Eugene Teo , netdev Subject: Re: [PATCH] af_unix: limit unix_tot_inflight References: <1290553918.2866.80.camel@edumazet-laptop> <1290590335.3464.24.camel@edumazet-laptop> Date: Wed, 24 Nov 2010 15:44:53 +0100 In-Reply-To: <1290590335.3464.24.camel@edumazet-laptop> (Eric Dumazet's message of "Wed, 24 Nov 2010 10:18:55 +0100") Message-ID: <877hg2g4re.fsf@basil.nowhere.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 725 Lines: 24 Eric Dumazet 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/