From owner-freebsd-hackers Mon Aug 3 23:21:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA06819 for freebsd-hackers-outgoing; Mon, 3 Aug 1998 23:21:47 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA06811 for ; Mon, 3 Aug 1998 23:21:41 -0700 (PDT) (envelope-from andre.albsmeier@mchp.siemens.de) X-Envelope-Sender-Is: andre.albsmeier@mchp.siemens.de (at relayer david.siemens.de) Received: from mail.siemens.de (salomon.siemens.de [139.23.33.13]) by david.siemens.de (8.9.1/8.9.1) with ESMTP id IAA15496 for ; Tue, 4 Aug 1998 08:21:20 +0200 (MET DST) Received: from curry.mchp.siemens.de (daemon@curry.mchp.siemens.de [146.180.31.23]) by mail.siemens.de (8.9.1/8.9.1) with ESMTP id IAA06382 for ; Tue, 4 Aug 1998 08:21:21 +0200 (MET DST) Received: (from daemon@localhost) by curry.mchp.siemens.de (8.8.8/8.8.8) id IAA19675 for ; Tue, 4 Aug 1998 08:21:22 +0200 (CEST) Received: from server.us.tld(192.168.16.33) via SMTP by curry.mchp.siemens.de, id smtpdE19673; Tue Aug 4 08:21:17 1998 Received: (from daemon@localhost) by server.us.tld (8.8.8/8.8.8) id IAA04259 for ; Tue, 4 Aug 1998 08:21:17 +0200 (CEST) (envelope-from andre@bali.us.tld) Received: from bali.us.tld(192.168.21.100) via SMTP by server.us.tld, id smtpdNs4120; Tue Aug 4 08:21:16 1998 Received: (from andre@localhost) by bali.us.tld (8.8.8/8.8.8) id IAA01758; Tue, 4 Aug 1998 08:21:15 +0200 (CEST) (envelope-from andre) From: Andre Albsmeier Message-Id: <199808040621.IAA01758@bali.us.tld> Subject: Re: User Quotas In-Reply-To: <199808031920.MAA01206@usr07.primenet.com> from Terry Lambert at "Aug 3, 98 07:20:51 pm" To: tlambert@primenet.com (Terry Lambert) Date: Tue, 4 Aug 1998 08:21:15 +0200 (CEST) Cc: joes@shasta.wstein.com, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I see numerous references (Handbook, The Complete FreeBSD, etc) to the > > fact that quotas are "buggy" and should be used only sparingly. > > > > To what extent are quotas "buggy", what are the bugs, and are there any > > plans to correct them? > > If the quota file is not on the FS to which the quotas are applied > and/or there is a user/group quota that applies to the quota file, > then you can deadlock. > > To avoid this, you should use one of the "cookbooks" for correct > quota setup that have been posted to -current or -hackers over > the years. > > Do not expect quotas to work properly over NFS; the lease management > code does not enforce distributed cache coherency correcly because > of missing assertions (see other discussions of NFS). You can get > around this by forcing the use of NFSv2, which effectively disables > thes (and many other) optimizations. > > > > Where do I look if I want to tinker? (Obviously, the source code, but > > where are they implemented?) > > Ideally, you would tinker with VFS stacking. The best way to > implement quotas is to implement them as a stacking layer, so that > they can apply to all FS's. And: Never use quotas with extremly large (or negative) UIDs. The quota system is unusable if large UIDs are used because the quota.user file is an array of structures where the index represents the UID and the structure is 32 byte. When using UID 4294967294 (-2) as PCNFS with user nobody does it, you can imagine the theorethical size of quota.user. See also PR 2325. But, apart of that, quotas work great here (using a 18GB drive). -Andre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message