From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264513AbUEVCV0 (ORCPT ); Fri, 21 May 2004 22:21:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264659AbUEVCSG (ORCPT ); Fri, 21 May 2004 22:18:06 -0400 Received: from fw.osdl.org ([65.172.181.6]:6622 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S264524AbUEVCQm (ORCPT ); Fri, 21 May 2004 22:16:42 -0400 Date: Fri, 21 May 2004 19:16:09 -0700 From: Andrew Morton To: Dimitri Sivanich Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: Slab cache reap and CPU availability Message-Id: <20040521191609.6f4a49a7.akpm@osdl.org> In-Reply-To: <200405211541.i4LFfpar001544@fsgi142.americas.sgi.com> References: <200405211541.i4LFfpar001544@fsgi142.americas.sgi.com> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Dimitri Sivanich wrote: > > Hi all, > > I have a fairly general question about the slab cache reap code. > > In running realtime noise tests on the 2.6 kernels (spinning to detect periods > of CPU unavailability to RT threads) on an IA/64 Altix system, I have found the > cache_reap code to be the source of a number of larger holdoffs (periods of > CPU unavailability). These can last into the 100's of usec on 1300 MHz CPUs. > Since this code runs periodically every few seconds as a timer softirq on all > CPUs, holdoffs can occur frequently. > > Has anyone looked into less interruptive alternatives to running cache_reap > this way (for the 2.6 kernel), or maybe looked into potential optimizations > to the routine itself? > Do you have stack backtraces? I thought the problem was via the RCU softirq callbacks, not via the timer interrupt. Dipankar spent some time looking at the RCU-related problem but solutions are not comfortable. What workload is triggering this?