From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 8 Mar 2003 13:18:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 8 Mar 2003 13:18:11 -0500 Received: from vitelus.com ([64.81.243.207]:29702 "EHLO vitelus.com") by vger.kernel.org with ESMTP id ; Sat, 8 Mar 2003 13:18:10 -0500 Date: Sat, 8 Mar 2003 10:28:21 -0800 From: Aaron Lehmann To: Ingo Molnar Cc: Andrew Morton , Robert Love , linux-kernel@vger.kernel.org Subject: Re: [patch] "HT scheduler", sched-2.5.63-B3 Message-ID: <20030308182821.GB408@vitelus.com> References: <20030307070005.GB21885@vitelus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.3i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 07, 2003 at 08:36:12AM +0100, Ingo Molnar wrote: > > I was able to reproduce them by selecting text in Mathematica (ugh, not > > a very helpful example). The skips were shorter and about three times as > > hard to trigger as on 2.5.63. > > okay, just as a data point, could you try to renice the player > process/thread to -2? Does it make the skipping harder to trigger? > How about -5, or -10? Renicing all xmms threads to -2 makes the problem impossible to trigger in this way. I'm sorry for having such a stupid testcase; Mathematica is proprietary software, and judging by the way it makes XMMS skip, it's probably doing something stupid. XMMS also has a "Use realtime priority" option, which makes it do: sparam.sched_priority = sched_get_priority_max(SCHED_RR); sched_setscheduler(0, SCHED_RR, &sparam); Obviously, this requires root privileges, however, it also prevents the skipping. I wonder if setting CAP_SYS_NICE on xmms and hacking it to ignore geteuid() would be safe.