From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schniedermeyer Subject: Re: [PATCH] sysctl: Add a feature to drop caches selectively Date: Fri, 27 Jun 2014 10:41:39 +0200 Message-ID: <20140627084139.GA29704@citd.de> References: <1403626213-7691-1-git-send-email-mcsim.planeta@gmail.com> <1403677528.7903.103.camel@sauron.fi.intel.com> <20140626010606.GT4453@dastard> <1403763199.20275.39.camel@sauron.fi.intel.com> <53ABF7C4.1000906@itwm.fraunhofer.de> <1403782263.20275.59.camel@sauron.fi.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Artem Bityutskiy , Bernd Schubert , Dave Chinner , Thomas Knauth , David Rientjes , Maksym Planeta , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org To: =?iso-8859-1?B?THVr4T8=?= Czerner Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 26.06.2014 13:57, Luk=E1? Czerner wrote: > > So if the authors want to sell this new interface (in whatever form= ) to > > the kernel community, they should start with providing a solid use-= case, > > with some more details, explore alternatives and show how the > > alternatives do not work for them. >=20 > Yes please, let's see some solid use-case for this. Personally i would want it to verify files after copying them: Especially while moving files: - Copy a file - - Verify that it really is correct on stable storage - Remove original file Currently i choose either of the 3 ways: - drop_caches - umount/mount - Write more data than memory in machine (Which is only an=20 approximnation and you have to verify in the same order the files were=20 written, so it is likely that any cache was thrashed in the meantime) But having a way to selectivly "destory" the cache of a file would make= =20 this task easier. --=20 Matthias