From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 4D1AA590C for ; Wed, 20 May 2015 10:46:47 +0200 (CEST) Received: by wgbgq6 with SMTP id gq6so44992017wgb.3 for ; Wed, 20 May 2015 01:46:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=h5xAGPuVfr2QnywttHLWbMFot+M7WP0iIu6x4xRJie8=; b=ai4pPxOpMEvxyNwtkCyRFueG+VUkMSI0T8Pqx5d5NVXluCYXlpygowiAkSSMvYdhrS s10xAvq7jzV/szCZUXrLXhlpbMdQFKlLwcqC3hYmieCkszC9GlFlwkZ4IMC6GJftW3Oz xeZrQojQncY4bKs45BF5BNuqilQRI8FHzv05z47LzLRFQQ2qbCPoxWa45355BVpLCdbx gVqEvgkBREHrW5N9cjSAJcf49gBTtu/C5qLqdKMtS7+duH7c78QYsqHJJT1c2ac9W7k1 B2Y+xyvQOQxpC7EIX3MBZMPJA7Rw15n33Kcqz72zv0wAV/2bwxHwBxc57PQALN72k8X8 n93g== X-Gm-Message-State: ALoCoQmnCjJ5oFk9qBEEdFzmIaHXQc5qUJHE0cNMDC4AaiRrLhpXxuzthAVlJ06U/L9srvN5nJS/ X-Received: by 10.194.201.71 with SMTP id jy7mr61736725wjc.93.1432111607150; Wed, 20 May 2015 01:46:47 -0700 (PDT) Received: from xps13.localnet ([62.159.77.186]) by mx.google.com with ESMTPSA id z12sm25630208wjw.39.2015.05.20.01.46.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 May 2015 01:46:46 -0700 (PDT) From: Thomas Monjalon To: Zoltan Kiss Date: Wed, 20 May 2015 10:46:02 +0200 Message-ID: <2853364.ZmbYvazaEZ@xps13> Organization: 6WIND User-Agent: KMail/4.14.7 (Linux/4.0.1-1-ARCH; KDE/4.14.7; x86_64; ; ) In-Reply-To: <555C4683.7000702@6wind.com> References: <1431963314-3701-1-git-send-email-zoltan.kiss@linaro.org> <555C4683.7000702@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2] mempool: limit cache_size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 08:46:47 -0000 2015-05-20 10:32, Olivier MATZ: > On 05/18/2015 05:35 PM, Zoltan Kiss wrote: > > Otherwise cache_flushthresh can be bigger than n, and > > a consumer can starve others by keeping every element > > either in use or in the cache. > > > > Signed-off-by: Zoltan Kiss > > Acked-by: Olivier Matz Applied, thanks > > +#define CALC_CACHE_FLUSHTHRESH(c) \ > > + ((typeof (c))((c) * CACHE_FLUSHTHRESH_MULTIPLIER)) I fixed spacing here: + ((typeof(c))((c) * CACHE_FLUSHTHRESH_MULTIPLIER))