From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269089AbUHaWj7 (ORCPT ); Tue, 31 Aug 2004 18:39:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269129AbUHaWXq (ORCPT ); Tue, 31 Aug 2004 18:23:46 -0400 Received: from gprs214-205.eurotel.cz ([160.218.214.205]:899 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S269089AbUHaWNV (ORCPT ); Tue, 31 Aug 2004 18:13:21 -0400 Date: Wed, 1 Sep 2004 00:07:26 +0200 From: Pavel Machek To: Linus Torvalds Cc: Horst von Brand , David Masover , Jamie Lokier , Chris Wedgwood , viro@parcelfarce.linux.theplanet.co.uk, Christoph Hellwig , Hans Reiser , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Lyamin aka FLX , ReiserFS List Subject: Re: silent semantic changes with reiser4 Message-ID: <20040831220726.GB16428@elf.ucw.cz> References: <200408311931.i7VJV8kt028102@laptop11.inf.utfsm.cl> <20040831203226.GB16110@elf.ucw.cz> <20040831205422.GD16110@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.5.1+cvs20040105i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > > However, that said, user space can trivially cache things in the > > > filesystem, so while this may be a convenient feature, I think you should > > > look at perhaps doing it in the _shell_ instead.. > > > > That cache should disappear as soon as I need disk > > space. I.e. userspace should never see -ENOSPC because of this kind of > > caching. This need some kernel support. Ouch and cached file should > > atomically go away as soon as main file changes, otherwise I do not > > see how multiple processes could cooperate on caching... > > Well, what other projects have done is to just reserve a certain amount of > disk for caching. See "ccache", which solves both of the above problems > (it doesn't shrink the cache on ENOSPC, but reserving diskspace is > accepted practice for things like this..) Okay, that does work, it just is not really nice. Just as reserving fixed ammount of space for disk cache is bad, reserving fixed ammount of space for ccache (and similar) is bad. When there are few of such caches, balancing between them starts to matter... Pavel -- People were complaining that M$ turns users into beta-testers... ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!