From owner-soc-status@FreeBSD.ORG Wed Jul 25 11:54:49 2012 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3DD45106566C for ; Wed, 25 Jul 2012 11:54:49 +0000 (UTC) (envelope-from rudotx@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id C9DD88FC0A for ; Wed, 25 Jul 2012 11:54:48 +0000 (UTC) Received: by weyx56 with SMTP id x56so550910wey.13 for ; Wed, 25 Jul 2012 04:54:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=hP5Oo91xyjf/VqknYOTmTwJWAAZJx9S6iZawyPoL+lA=; b=bGJF98vQZ0vxxEbo8GZcsUwhYFh3o5COq//aPSeP76vqKrzsrG7LPVeDIxeZw64cxJ x+HYiFJys/nu2kU+1Otk/cKcKRsVuar3DYidr7RKVJ0GqlaFxVBYKKJ7K8RcsdXy8iXS gnHLabehpS2u/9KBCBB8ZpC+tP5B673FueEbSx6NGwcb95OsLHk5QC1IcwNQ664WFgi8 mD2HQQrg0790bwDqbLHG2ZKDRTwq5ZImr6F1QoAek1gSi596RquF3JO6UBWgtZvwjpZh 1EsaiInLIl+d/YkC8UJauT4IqwYrVCTy9506aHmnjJGAtXvF58VXFVG3dSVjELuVEEsz hNIA== Received: by 10.180.14.193 with SMTP id r1mr3959698wic.19.1343217284344; Wed, 25 Jul 2012 04:54:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.184.4 with HTTP; Wed, 25 Jul 2012 04:54:23 -0700 (PDT) From: rudo tomori Date: Wed, 25 Jul 2012 13:54:23 +0200 Message-ID: To: soc-status@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: cpu limits status report X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2012 11:54:49 -0000 Hi, the goal of my gsoc project is to enable the system administrators to configure %CPU limits using the rctl command. So that they can for example limit a particular user to 50% cpu time. Last week I was mainly working on testing. One guy provided me access to some machines with different architectures and I successfully tested my work on amd64/9-release, amd64/current, sparc64/9-release and powerpc/9-release. I also committed some code - I reverted back to the original version of the function rctl_enforce() and I added a new function rctl_over_limit() that I use for checking if the pcpu limits are adhered to. This week I want to see how per-jail %cpu limits work. I assume that the rctl infrastructure already enables me to specify and enforce per-jail pcpu limits. So I want to see how this works in practice. I also have some small issues in my head that I want to address this week. This includes fixing some includes in my code and preventing system processes from being interrupted by rctl sleep. rudo