From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 24 14:51:27 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC09F106564A for ; Thu, 24 Nov 2011 14:51:26 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 742008FC08 for ; Thu, 24 Nov 2011 14:51:26 +0000 (UTC) Received: by wwe5 with SMTP id 5so133083wwe.31 for ; Thu, 24 Nov 2011 06:51:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=bAh9cibSKDYXj2HKzJrG8gHJkNe5CKaoE/v9smgw3p8=; b=pcanPHGtsA/bD1ecwJVUWd75sKZ2BYjtbtk14zWDDH972ra9mruy2ENFeoZuMJBCc0 4wWlk5E1QsqkuWzhe37HZ1CnuvVgXCoF2UmWht+DPixaQHJfMULNN8+CweIQtjQzh7WT 7wg/Ya+Rr+LfbhqSVpR4sFcAlX6se+eoM9u2Q= Received: by 10.227.209.9 with SMTP id ge9mr18351835wbb.1.1322146285337; Thu, 24 Nov 2011 06:51:25 -0800 (PST) Received: from DataIX.net (ppp-21.226.dialinfree.com. [209.172.21.226]) by mx.google.com with ESMTPS id a27sm24357408wbp.16.2011.11.24.06.51.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Nov 2011 06:51:24 -0800 (PST) Sender: Jason Hellenthal Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id pAOEpD4Y027833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Nov 2011 09:51:14 -0500 (EST) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id pAOEpDZx027832; Thu, 24 Nov 2011 09:51:13 -0500 (EST) (envelope-from jhell@DataIX.net) Date: Thu, 24 Nov 2011 09:51:13 -0500 From: Jason Hellenthal To: Stefan Bethke Message-ID: <20111124145113.GB10540@DataIX.net> References: <33122B07-5473-4C84-A89D-B4C2F9677BC0@lassitu.de> <6354F6F2-959D-4451-A434-32C5C7335C25@lassitu.de> <20111124081532.GA10540@DataIX.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: Cc: Adam Vande More , freebsd-hackers@freebsd.org Subject: Re: Limiting disk I/O by jail or uid? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 14:51:27 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 24, 2011 at 11:14:58AM +0100, Stefan Bethke wrote: > Am 24.11.2011 um 09:15 schrieb Jason Hellenthal: >=20 > >=20 > > Hi Stefan, > >=20 > > This is probably what you are looking for. Give it a shot. > >=20 > > https://jhell.googlecode.com/hg/base/vendor/vehosting/slowdown.c >=20 > Just tried this: Unfortunately, my app is not slowed down sufficiently. = I'm afraid I need something that actually re-prioritizes actual disk I/O. What app is this ? Considering the above code is a wrapper for stat() fstat() lstat() syscalls= and you only seen a small decrease I would believe its using something els= e quite intensively but without the application at hand or at least a ktrac= e(1) or a truss(1) of the running proccess, I don't think there is much tha= t can be done. It would be nice if something like this was natively available but we tend = to lack a few things here in FreeBSD that can be seen elsewhere. --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJOzlngAAoJEJBXh4mJ2FR+jXMH/3wznogcLe2YAv0VbSfbBccS 8f3/K/OkJWB8AyC49YSy8jDTJe4xxAt75YDY/bmgSFI95cUVCi+dvM382IMjcvxP 48xl6D6EDUXX04Y+I5xmywXw2l4lME3a38sY1T7XRb5DSTxqd5qytWPlLbdxso6m iIQaCv0KorJK+GMj/nXRVqMa8TvoNidt6Q02On93K0eKK3UJCtskTjh1GNOawB5g NTjhm7bkUeMJCk0MY3f/FCrQBVmgX45OJxtf7FdXrWMkIyywml+Fki4EsQK23EG7 +03NUN0gEbTgAt+CriUD1biOwSqbCwLxFCbzyfueakuG2Jz3nPh7tb9xbW1V3ig= =kdNH -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--