Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161043AbXBTWsY (ORCPT ); Tue, 20 Feb 2007 17:48:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161049AbXBTWsX (ORCPT ); Tue, 20 Feb 2007 17:48:23 -0500 Received: from numenor.qualcomm.com ([129.46.51.58]:54965 "EHLO numenor.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161052AbXBTWsV (ORCPT ); Tue, 20 Feb 2007 17:48:21 -0500 Message-ID: <45DB7AB1.5010304@qualcomm.com> Date: Tue, 20 Feb 2007 14:48:17 -0800 From: Max Krasnyansky User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: Christoph Lameter CC: linux-kernel@vger.kernel.org Subject: SLAB cache reaper on isolated cpus References: <20070129011301.GA844@tv-sign.ru> <20070129171923.GA138@tv-sign.ru> <20070129182742.GA158@tv-sign.ru> <45DB404C.4070305@qualcomm.com> <20070220200550.GA85@tv-sign.ru> <45DB669B.2010307@qualcomm.com> <45DB6FC7.60502@qualcomm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1715 Lines: 36 Christoph Lameter wrote: > On Tue, 20 Feb 2007, Max Krasnyansky wrote: > >> Ok. Sounds like disabling cache_reaper is a better option for now. Like you said >> it's unlikely that slabs will grow much if that cpu is not heavily used by the kernel. > > Running for prolonged times without cache_reaper is no good. > > What we are talking about here is to disable the cache_reaper during cpu > shutdown. The slab cpu shutdown will clean the per cpu caches anyways so > we really do not need the slab_reaper running during cpu shutdown. Ok. Let me restart the thread so that we're not confusing two issues :). I'm not talking about CPU shutdown or CPU hotplug in general. My proposal seemed related to the CPU shutdown issue that you guys were discussing, but it turns out it's not. Suppose I need to isolate a CPU. We already support at the scheduler and irq levels (irq affinity). But I want to go a bit further and avoid doing kernel work on isolated cpus as much as possible. For example I would not want to schedule work queues and stuff on them. Currently there are just a few users of the schedule_delayed_work_on(). cpufreq (don't care for isolation purposes), oprofile (same here) and slab. For the slab it'd be nice to run the reaper on some other CPU. But you're saying that locking depends on CPU pinning. Is there any other option besides disabling cache reap ? Is there a way for example to constraint the slabs on CPU X to not exceed N megs ? Max - 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/