From owner-freebsd-questions@freebsd.org Fri Aug 19 09:23:30 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EEA8FBBF6AD for ; Fri, 19 Aug 2016 09:23:30 +0000 (UTC) (envelope-from magnus.ahriman@gmail.com) Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com [IPv6:2a00:1450:4010:c07::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 75E281507 for ; Fri, 19 Aug 2016 09:23:30 +0000 (UTC) (envelope-from magnus.ahriman@gmail.com) Received: by mail-lf0-x233.google.com with SMTP id b199so28816929lfe.0 for ; Fri, 19 Aug 2016 02:23:30 -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; bh=d+IP7Rrpn+60WN87wfu1ieHphewqN/EFBTeGtHz3TlQ=; b=A+Y3Ok2HG2GxqRq6ohDfrkYnz61hgh/qfSdt//SVMRumQo3xKCCP7+ob8t9J95ABLz f2MB4/jOO3CEHt+92hYMf8Sf29jkCA44BO43EX5Ew7DrT7HPG8225IZfzjy+INXr1E/A sKwLPa4ejaTgA1TeqgNwYcPciYnqrUzed1llVrCOiV4OrfuSxXhXL/bvzsrhHH2PkaoO sn3vaZ9wOwm+oj2ZWpR8udZMd9uNrqWX1aq4NYoV+o0GF8XQNAYgK2BcvY5DATZb4C5N KZrd59IuwOYfxPnugO7X5Ev8vgJQp9GrUpGXB9UIcrflaEr2O6WvPKl+lUyXT+/TaEGq faow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=d+IP7Rrpn+60WN87wfu1ieHphewqN/EFBTeGtHz3TlQ=; b=j1pcT7Ci1wXSUQ8PHoR9f5BNbU8cU8CZmJav5RZTtaXmvi/Ow/XDQnXRUeVFWh1Nwh 5VUtcuz27OlXDddwBJIUnDh3qKCj3NV7ZaitJ1jnDTMjyr54Rl3YE/oBHZibQliUhKr7 cnbsVFlc+SA4q38rIZStQi1v+jD+sbnCL0wwgsKReo4PYbOdCEz4i04CI+EFBmxtQbOb RYGwmHgWtI4ai4reS9qX9+Ypypkbu68Ey586yl7wisIAP4W1OjzuKT+9OTdxfNLMW46E Enyn0Ksh/My14Z+/TcmFObMmMLviVZOad2QZJ86hMZaJB+Ogd6EEMUHtybLjPbP/HTo1 dYVA== X-Gm-Message-State: AEkoouv37a501xON74H2vAPJM1sM6Camk3iuALg1ZMBDhBTf8qVZZPsnXX+uTDlj0DHhjpIeGCJftUgesTOKOg== X-Received: by 10.46.5.5 with SMTP id 5mr1794317ljf.9.1471598606471; Fri, 19 Aug 2016 02:23:26 -0700 (PDT) MIME-Version: 1.0 From: Magnus Ahriman Date: Fri, 19 Aug 2016 09:23:16 +0000 Message-ID: Subject: How do I limit I/O usage for a user/process? A user broke my system To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 09:23:31 -0000 Hi, Today I had a user who decided to open a very large text file in pico. The result was a complete denial of service of the system and everything stalled/was working veeeeery slowly. Even after the user had killed the process it took quite some while for the system to recover and I seemed to notice improvements of certain services after having restarted them. What are my options to limit resource usage for users? I tried renicing the user's process but to no help and the problem was most certainly with disk I/O. I don't want a normal user being able to lock up my entire system just by viewing text files. So any ideas? Best regards, Magnus