From owner-soc-status@FreeBSD.ORG Mon Jun 18 19:54:16 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 91135106566B for ; Mon, 18 Jun 2012 19:54:16 +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 28B608FC0C for ; Mon, 18 Jun 2012 19:54:16 +0000 (UTC) Received: by werg1 with SMTP id g1so4960715wer.13 for ; Mon, 18 Jun 2012 12:54:15 -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=1Kei1Sz9esoXPEhCAALXLxKbREWiDmOVb/OKiwGYce0=; b=jvx6lYX7MYORwGo5TrDGOYyTpDQRapm2S5BpX5HMY+TeLamgWsXNQXrSq6MFew68ow GrqQCunc2s6ndzExacu7Kn/EWEtNdqIsALxuUJB5mmLrRLJHHqzbQhhdL18EJc7Oy4ll wDutxtPnv7y8qkWY/dRC91JLp/NyfJ66k5M+zd/3a7amala9sI/vbRB5Ww1w3WBU81Yq l/RVXp0+vWmRh4Ezo5/SC2fFDQOw0QQjG+rPt5WEHWrEcJuzL6gnLCcVNoDs8zi7YLNm 4Y2a2AMH0eAiWTxmqFOp6vSSIwQeDefyM2BopB1tlsc0LUvMzuTi/A4OdeiV1tE51GGv VdXg== Received: by 10.216.202.14 with SMTP id c14mr9785695weo.63.1340049252816; Mon, 18 Jun 2012 12:54:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.231.98 with HTTP; Mon, 18 Jun 2012 12:53:52 -0700 (PDT) From: rudo tomori Date: Mon, 18 Jun 2012 21:53:52 +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: Mon, 18 Jun 2012 19:54:16 -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 working on per-user %cpu limits. I did not have to create much code of my own, it was more of a matter of inspecting the existing code and using it where appropriate. Now it seems to me that my current per-user %cpu implementation is working so I will write a test to evaluate it. I will create a shell script that periodically takes a snapshot of running processes for a specified user and counts the sum of %cpu values from the output of the ps command. I will then run make buildworld under some user that has per-user %cpu limits set and inspect the test results, probably also talk about them with my mentor. rudo