[Top] [All Lists]

Re: xfs - high CPU usage when removing files

To: Linux fs XFS <xfs@xxxxxxxxxxx>
Subject: Re: xfs - high CPU usage when removing files
From: Stefan Ring <stefanrin@xxxxxxxxx>
Date: Tue, 14 May 2013 13:11:02 +0200
Cc: Radoslaw Garbacz <radoslaw.garbacz@xxxxxxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=BtF/R0agw/Yq6tKdLQno6+aUuMuda8PegAxIhO1VVOg=; b=GVTLr41w+TO6+PK8hqpos9BZhGhJJEw2PXO45fyAzbzUonALYH/zVpruJARAb7YE6G mZnr8vrAe4Xe692eU/H/cye8iylTCiZUFRItliwWmp8IoYlcSo2abn+0lMNl80WwX442 qqKqf9/wkB+IFf3QoxXhbrVCi8QKn7hHO9a3UXw5V+w7Ydh/73/ThZ5QxnSNqG0o4yVV dpS5KBjdLER3zax3clcGRIKPMBMd++vAJGO8dpO36gNTgba+I8wWe1L+oTWPHSNBaoQP xgSTIZ98R3kGZpJQpf50xm6Xn4V3Ak9eHGZNrdKEExpjBEWu+9qEPUgpEffSHDdy2alS 0hdQ==
In-reply-to: <20130514004751.GQ32675@dastard>
References: <CAHBw7oSxcTYEEFzzhpZfH_EshyYXOsRBpf=S+bLEgCyQZkLFsA@xxxxxxxxxxxxxx> <20130514004751.GQ32675@dastard>
>> I noticed a high CPU usage when removing files from XFS partition on Linux,
>> CentOS (always close to 100%).
>> Is it a known issue, or is it more likely to be attributed to my testing
>> methodology ('time' command)?
> If you are removing extremely fragmented files, then 100% CPU will
> be seen.  If you are removing tens of thousands of small files, then
> 100% CPU will be seen,
> IOWs, if there's enough work to be done, removing files will use all
> the available CPU. There's no problem with that.

Also, removing huge files which are completely in cache (recently
written, for example) will use considerable CPU time.

<Prev in Thread] Current Thread [Next in Thread>