public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Subranshu Patel <spatel.ml@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: High %user CPU in XFS
Date: Mon, 18 Feb 2013 08:25:36 +1100	[thread overview]
Message-ID: <20130217212536.GY26694@dastard> (raw)
In-Reply-To: <CAEUQcehy1fy5-W-TA--2emBgL3y9JskqRPCZf1ED5JDbPHqKTQ@mail.gmail.com>

On Sun, Feb 17, 2013 at 09:20:46PM +0530, Subranshu Patel wrote:
>  I created 2 filesystem on my system (RHEL 6.3, kernel 2.6.32) - XFS
> and EXT4 and mounted them.
> 
> On both the filesystem I executed a program which performed the following:
> - Create large number of directories
> - Removing all the directories
> 
> During the execution of the program, I monitored the %user and %system
> CPU usage (using sar command)
> 
> For EXT4 the %user was 1% and %system was 21%
> For XFS the %user was 20% and %system was 52%
> 
> But I am not able to understand %user consumption, since %user reports
> the CPU usage of the user level (application), shouldn't it be the
> same for both EXT4 and XFS?

Perf is your friend.

> What are the factors that decide the %user component keeping in mind
> that only the filesystem is different?

Page faults, CPU cache misses. XFS has a significantly large icache
and dcache footprint than ext4, so those are the likely causes.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  parent reply	other threads:[~2013-02-17 21:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-17 15:50 High %user CPU in XFS Subranshu Patel
2013-02-17 21:04 ` Tru Huynh
2013-02-17 21:29   ` Dave Chinner
2013-02-17 21:25 ` Dave Chinner [this message]
2013-02-18 14:17   ` Subranshu Patel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130217212536.GY26694@dastard \
    --to=david@fromorbit.com \
    --cc=spatel.ml@gmail.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox