Delivered-To: edwintorok@gmail.com
Received: by 10.143.122.5 with SMTP id z5cs139388wfm;
        Sun, 17 Feb 2008 08:09:47 -0800 (PST)
Received: by 10.140.82.38 with SMTP id f38mr3238281rvb.30.1203264587861;
        Sun, 17 Feb 2008 08:09:47 -0800 (PST)
Return-Path: <arjan@linux.intel.com>
Received: from orsmga101.jf.intel.com (mga06.intel.com [134.134.136.21])
        by mx.google.com with ESMTP id f28si7517524rvb.35.2008.02.17.08.09.47;
        Sun, 17 Feb 2008 08:09:47 -0800 (PST)
Received-SPF: pass (google.com: domain of arjan@linux.intel.com designates 134.134.136.21 as permitted sender) client-ip=134.134.136.21;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of arjan@linux.intel.com designates 134.134.136.21 as permitted sender) smtp.mail=arjan@linux.intel.com
Received: from orsmga002.jf.intel.com ([10.7.209.21])
  by orsmga101.jf.intel.com with ESMTP; 17 Feb 2008 08:09:47 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="4.25,366,1199692800";
   d="scan'208";a="258320829"
Received: from jf-86862470-dhcp-client.jf.intel.com (HELO [134.134.36.112]) ([134.134.36.112])
  by orsmga002.jf.intel.com with ESMTP; 17 Feb 2008 08:09:47 -0800
Message-ID: <47B85C22.3070504@linux.intel.com>
Date: Sun, 17 Feb 2008 08:09:06 -0800
From: Arjan van de Ven <arjan@linux.intel.com>
User-Agent: Thunderbird 1.5.0.14 (Windows/20071210)
MIME-Version: 1.0
To: =?ISO-8859-1?Q?T=F6r=F6k_Edwin?= <edwintorok@gmail.com>
CC: power@bughost.org
Subject: Re: new offender in 2.6.25-git: xfsaild
References: <47B5D405.409@gmail.com> <47B8538F.7060209@gmail.com>
In-Reply-To: <47B8538F.7060209@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Török Edwin wrote:
> Török Edwin wrote:
>> Hi,
>>
>> On latest -git of 2.6.25 I am getting lots of wakeups from xfsaild.
>>   23.5% ( 33.3)           xfsaild : schedule_timeout (process_timeout)
>>   
> 
> [Should I Cc: xfs mailing list / lkml on this?]
> 
> The problem seems to be with the timeout logic in xfsaild_push, which
> can return 3 timeout values (msecs): 1000, 10, 20, 30.
> I inserted a marker and attached a probe function, schedule_timeout
> always got called with 9 jiffies (which is 30 msecs, I have HZ=300).
> 
> Changing xfs_trans_ail.c:270 from "tout += 20" to "tout = 1000", made
> xfsaild only do 1 wakeup/s instead of 33!
> 
> For some reason xfs_aild always thinks it has work (I/O) to do, and
> never chooses the 1000 msec sleep value.
> 

sounds like an XFS bug... worth reporting to the xfs/lkml folks for sure.

