public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "L.A. Walsh" <xfs@tlinx.org>
To: Dave Chinner <david@fromorbit.com>, xfs@oss.sgi.com
Subject: I/O 'owner' DoS probs (was Re: Does XFS support cgroup writeback limiting?)
Date: Tue, 01 Dec 2015 03:01:23 -0800	[thread overview]
Message-ID: <565D7E03.20008@tlinx.org> (raw)
In-Reply-To: <20151125213500.GK26718@dastard>



Dave Chinner wrote:
> Metadata IO not throttled - it is owned by the filesystem and hence
> root cgroup. 
----
	Please forgive me if this is "obvious"....

	If it is owned by the file system, then logically, such meta
data wouldn't count against the user's quota limits?   That 'could'
be justified on the basis that the format of the metadata is outside
the control of file owner and depending on what's supported, included
or logged in metadata, the size could vary greatly -- all outside of the
direct control of the user.  However, by adding extended attributes,
the user can, likely, affect the disk space used by the metadata 
regardless of how it implemented and stored on disk -- so in that respect
it is user data.  Similarly, system CPU time is attributed to the user
causing the CPU time to be spent, and so on.  

	To highlight the type of problems this can cause: starting after
Windows XP, MS decided to combine network file I/O requests over 64K to
be dispatched to the 'System' daemon to optimize network I/O from
multiple processes using bigger windows to try to keep the network pipe
as full as possible (competing, of course, with QOS for conforming
apps).  

	This created a problem -- applications that flood the network
sit mostly idle waiting for their rpc call to finish and all their 
BW is attributed to System.   

	FWIW -- you cannot change any of the priorities for System
without it going all blue screen on you telling you that it's crashing
to protect you -- because something changed one of it's priority number
(IO/cpu/memory...etc).  

	Problem is that any intensive prioritizing slows everything down
and the entire computer becomes unresponsive (10Gb link) as network
requests are reduced in size. Usually it is possible to restore
normality by restarting Explorer (assuming you have enough cpu time to
do so).  About 10% of the time, pulling the network cord is required to
stop the storm, and VERY rarely, <.01% of the time power-cycling is
required.

	Attributing user-generated I/O to system processes that are "unaccountable"  *can* and does cause DoS  "opportunities"....

	Is this metadata really I/O that is completely disconnected from
a user that they cannot affect?

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

  parent reply	other threads:[~2015-12-01 11:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23 11:05 Does XFS support cgroup writeback limiting? Lutz Vieweg
2015-11-23 20:26 ` Dave Chinner
2015-11-23 22:08   ` Lutz Vieweg
2015-11-23 23:20     ` Dave Chinner
2015-11-25 18:28       ` Lutz Vieweg
2015-11-25 21:35         ` Dave Chinner
2015-11-29 21:41           ` Lutz Vieweg
2015-11-30 23:44             ` Dave Chinner
2015-12-01  8:38             ` automatic testing of cgroup writeback limiting (was: Re: Does XFS support cgroup writeback limiting?) Martin Steigerwald
2015-12-01 16:38               ` Tejun Heo
2015-12-03  0:18                 ` automatic testing of cgroup writeback limiting Lutz Vieweg
2015-12-03 15:38                   ` Tejun Heo
2015-12-01 11:01           ` L.A. Walsh [this message]
2015-12-01 20:18             ` I/O 'owner' DoS probs (was Re: Does XFS support cgroup writeback limiting?) Dave Chinner

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=565D7E03.20008@tlinx.org \
    --to=xfs@tlinx.org \
    --cc=david@fromorbit.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