Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp997042imw; Tue, 5 Jul 2022 01:52:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1um425zue/Ltih4gCGsTd6PPqn7WAUiayNPv88+obOYXTalByCevpmgRZGbtw+6YwCmMpAG X-Received: by 2002:a05:6402:d05:b0:425:b7ab:776e with SMTP id eb5-20020a0564020d0500b00425b7ab776emr45096070edb.142.1657011148421; Tue, 05 Jul 2022 01:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657011148; cv=none; d=google.com; s=arc-20160816; b=oZsgQorbt2u4+meSuYddUBvywa0hGyp1ZMCscEr8yoONtn3BtXqZrt65x1Tk3jt3E1 iAogB3vICAM0x+E136kGvWUW4OaXofjCPy7eTbzMLz0WlZkSwgFpPILejMRTAgeNNDoN g0n5TypStVArUc6DkdOJp1KAOm1URGxS9kb+2gHPzxKAcuZ+GUuLjz0d5m+A+TE5ynbh DpieLcfGq1bULW7B+70vYlrtEpRfmI67WWhfFYLyiKCKjLDVeVGNxjHrDh8FEQ7un7gW iRePlY1lcyDeagJctNR+JPVMSgGq8qlyXs0ASp5dKoaueB0CYAP94vshRyUFtPqBsPlA 8N2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic:mime-version:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature :dkim-filter; bh=j8cO6kDsfnhDtiXnTVrxmJYmapfvEnNQpXyBMmZpc/I=; b=BekRyB7tClxJYIBaaxxm9RCCKoX3rs9oSHHgpahlgtjLZHPox6BSYpt5mcWGjdqV+f +t7s5fo97eOMkyICVIdOs5sNjYBN+UMU85GZhSjUqnyXlA2UtJD2UW8CcPjg1dKUri9B dLsf8ao3NIyVg/wf+ZDmaKHx2q5/hP662cRMZgMPXVI1995hF5B27zP9eK4j/kvWYHGu ShdCjtKpR6pD4fOCIi/EboOLL1Z7NayltYaeDJEnKMIW9cOfIaAnsCvznMhrbldNEifM IoOraeqQH4O+P+DAK81QPQTJ39H/1QqjNrWG0qJEg/k48sQdPUr652IfWaR6c83EYLzp aC3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@desy.de header.s=default header.b=thvmrR+U; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=desy.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a05640227d400b00435c05a5304si14898542ede.11.2022.07.05.01.51.51; Tue, 05 Jul 2022 01:52:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@desy.de header.s=default header.b=thvmrR+U; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=desy.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229849AbiGEIuY (ORCPT + 99 others); Tue, 5 Jul 2022 04:50:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiGEIuW (ORCPT ); Tue, 5 Jul 2022 04:50:22 -0400 Received: from smtp-o-1.desy.de (smtp-o-1.desy.de [131.169.56.154]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 664EADEA for ; Tue, 5 Jul 2022 01:50:20 -0700 (PDT) Received: from smtp-buf-1.desy.de (smtp-buf-1.desy.de [IPv6:2001:638:700:1038::1:a4]) by smtp-o-1.desy.de (Postfix) with ESMTP id F0EDCE0BC9 for ; Tue, 5 Jul 2022 10:50:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp-o-1.desy.de F0EDCE0BC9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=desy.de; s=default; t=1657011017; bh=j8cO6kDsfnhDtiXnTVrxmJYmapfvEnNQpXyBMmZpc/I=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=thvmrR+USVTxv62YimiHOq94RYb5+Ikw3lIjF7Fp9R8aezWdfMsS5rbLuJwKXytWp w6vF+wFgSoM6MaTdnmNEBd6s81+FnAEMUZXOnQkXNbPsI+9GhmnMSsZeo5ZG3Q0dGR 9ml2R0RvzcEf+HfaIZWI7qjDQiWnvezIdP3HnvvA= Received: from smtp-m-1.desy.de (smtp-m-1.desy.de [IPv6:2001:638:700:1038::1:81]) by smtp-buf-1.desy.de (Postfix) with ESMTP id E724A1201D4; Tue, 5 Jul 2022 10:50:16 +0200 (CEST) Received: from z-mbx-2.desy.de (z-mbx-2.desy.de [131.169.55.140]) by smtp-intra-1.desy.de (Postfix) with ESMTP id D4D97C0177; Tue, 5 Jul 2022 10:50:16 +0200 (CEST) Date: Tue, 5 Jul 2022 10:50:16 +0200 (CEST) From: "Mkrtchyan, Tigran" To: Daire Byrne Cc: Trond Myklebust , linux-nfs Message-ID: <1803700180.2293937.1657011016730.JavaMail.zimbra@desy.de> In-Reply-To: References: <737440541.1127428.1656698294694.JavaMail.zimbra@desy.de> <05f3b4e144ec5d12ab87d861222128181e805321.camel@hammerspace.com> Subject: Re: Per user rate limiter MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="----=_Part_2293939_478677305.1657011016828" X-Mailer: Zimbra 8.8.15_GA_4308 (ZimbraWebClient - FF101 (Linux)/8.8.15_GA_4303) Thread-Topic: Per user rate limiter Thread-Index: Da1j1ULLgi8z5yAMwTEsD/3pCvsq9Q== X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org ------=_Part_2293939_478677305.1657011016828 Date: Tue, 5 Jul 2022 10:50:16 +0200 (CEST) From: "Mkrtchyan, Tigran" To: Daire Byrne Cc: Trond Myklebust , linux-nfs Message-ID: <1803700180.2293937.1657011016730.JavaMail.zimbra@desy.de> In-Reply-To: References: <737440541.1127428.1656698294694.JavaMail.zimbra@desy.de> <05f3b4e144ec5d12ab87d861222128181e805321.camel@hammerspace.com> Subject: Re: Per user rate limiter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.8.15_GA_4308 (ZimbraWebClient - FF101 (Linux)/8.8.15_GA_4303) Thread-Topic: Per user rate limiter Thread-Index: Da1j1ULLgi8z5yAMwTEsD/3pCvsq9Q== Hi Daire, hi Trond, We will try to apply your suggestions. Thanks for the help, Tigran. ----- Original Message ----- > From: "Daire Byrne" > To: "Trond Myklebust" > Cc: "Tigran Mkrtchyan" , "linux-nfs" > Sent: Friday, 1 July, 2022 23:51:51 > Subject: Re: Per user rate limiter > On Fri, 1 Jul 2022 at 19:23, Trond Myklebust wrote: >> 2) Define QoS policies for the connections using the kernel Traffic > > If it helps, we use HTB qdisc/classes on our Linux NFS servers to > optionally limit the total egress and ingress (ifb) bandwidth to/from > our renderfarm. > > User workstations are exempt from these limits so always get full speed. > > We can do this fairly easily because our network is well defined and > split into subnet ranges so filtering by these allows us to > differentiate between host classes (farm/workstations etc). > > Strictly speaking, it's a bit more complicated in that we only apply > limits and change them dynamically based on the "load" of the server > and how well it is keeping up with demand. This is just a bash script > running in a loop looking at the state, scaling the HTB limits and > applying filters. > > Our goal is to always ensure that taff have a good experience on their > interactive desktops and we'll happily slow batch farm jobs to keep it > that way. > > It is basically a low-pass filter that limits server load spikes. > > To do something similar by user or process, you could run your jobs in > a cgroup and have it mark the packets that the server could then use > to filter. But I think this only works for the client writes to the > server as you have no way to mark and act on the egress packets out of > the server? > > Daire ------=_Part_2293939_478677305.1657011016828 Content-Type: application/pkcs7-signature; name=smime.p7s; smime-type=signed-data Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCAMIIF vzCCBKegAwIBAgIMJENPm+MXSsxZAQzUMA0GCSqGSIb3DQEBCwUAMIGNMQswCQYDVQQGEwJERTFF MEMGA1UECgw8VmVyZWluIHp1ciBGb2VyZGVydW5nIGVpbmVzIERldXRzY2hlbiBGb3JzY2h1bmdz bmV0emVzIGUuIFYuMRAwDgYDVQQLDAdERk4tUEtJMSUwIwYDVQQDDBxERk4tVmVyZWluIEdsb2Jh bCBJc3N1aW5nIENBMB4XDTIxMDIxMDEyMzEwOVoXDTI0MDIxMDEyMzEwOVowWDELMAkGA1UEBhMC REUxLjAsBgNVBAoMJURldXRzY2hlcyBFbGVrdHJvbmVuLVN5bmNocm90cm9uIERFU1kxGTAXBgNV BAMMEFRpZ3JhbiBNa3J0Y2h5YW4wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQClVKHU er1OiIaoo2MFDgCSzcqRCB8qVjjLJyJwzHWkhKniE6dwY8xHciG0HZFpSQqiRsoakD+BzqINXsqI CkVck5n7cUJ6cHBOM1r4pzEBcuuozPrT2tAfnHkFFGTZffOXgjmEITfSh6SD+DYeZH4Dt8kPZmnD mzWMDFDyB67WWcWApVC1nPh29yGgJk18UZ+Ut9a+woaovMZlutMbuvLVt/x5rpycMw0z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