From: "Lukáš Czerner" <lczerner@redhat.com>
To: Matthias Schniedermeyer <ms@citd.de>
Cc: Artem Bityutskiy <dedekind1@gmail.com>,
Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>,
Dave Chinner <david@fromorbit.com>,
Thomas Knauth <thomas.knauth@gmx.de>,
David Rientjes <rientjes@google.com>,
Maksym Planeta <mcsim.planeta@gmail.com>,
Alexander Viro <viro@zeniv.linux.org.uk>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] sysctl: Add a feature to drop caches selectively
Date: Fri, 27 Jun 2014 11:04:34 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.1406271103070.2349@localhost.localdomain> (raw)
In-Reply-To: <20140627084139.GA29704@citd.de>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1823 bytes --]
On Fri, 27 Jun 2014, Matthias Schniedermeyer wrote:
> Date: Fri, 27 Jun 2014 10:41:39 +0200
> From: Matthias Schniedermeyer <ms@citd.de>
> To: Luká? Czerner <lczerner@redhat.com>
> Cc: Artem Bityutskiy <dedekind1@gmail.com>,
> Bernd Schubert <bernd.schubert@itwm.fraunhofer.de>,
> Dave Chinner <david@fromorbit.com>, Thomas Knauth <thomas.knauth@gmx.de>,
> David Rientjes <rientjes@google.com>,
> Maksym Planeta <mcsim.planeta@gmail.com>,
> Alexander Viro <viro@zeniv.linux.org.uk>, linux-fsdevel@vger.kernel.org,
> linux-kernel@vger.kernel.org
> Subject: Re: [PATCH] sysctl: Add a feature to drop caches selectively
>
> On 26.06.2014 13:57, Luká? 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.
> >
> > 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
> - <drop cache>
> - Verify that it really is correct on stable storage
> - Remove original file
I assume you're using cp to copy a file, not your own program. In
that case can we make cp optionally use direct io ? It seems that it
would solve your problem in very elegant way.
-Lukas
>
> Currently i choose either of the 3 ways:
> - drop_caches
> - umount/mount
> - Write more data than memory in machine (Which is only an
> approximnation and you have to verify in the same order the files were
> 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
> this task easier.
>
>
>
>
>
next prev parent reply other threads:[~2014-06-27 9:05 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-24 16:10 Maksym Planeta
2014-06-24 21:59 ` David Rientjes
2014-06-25 6:25 ` Artem Bityutskiy
2014-06-25 8:25 ` Thomas Knauth
2014-06-25 9:56 ` Artem Bityutskiy
2014-06-25 13:23 ` Thomas Knauth
2014-06-25 13:30 ` Artem Bityutskiy
2014-06-25 13:42 ` Artem Bityutskiy
2014-06-26 9:30 ` Maksym Planeta
2014-06-25 10:03 ` Artem Bityutskiy
2014-06-25 13:19 ` Thomas Knauth
2014-06-25 22:15 ` Pavel Machek
2014-06-26 1:06 ` Dave Chinner
2014-06-26 6:13 ` Artem Bityutskiy
2014-06-26 10:36 ` Bernd Schubert
2014-06-26 11:31 ` Artem Bityutskiy
2014-06-26 11:57 ` Lukáš Czerner
2014-06-26 12:10 ` Bernd Schubert
2014-06-27 2:55 ` Dave Chinner
2014-06-27 8:58 ` Bernd Schubert
2014-06-27 8:41 ` Matthias Schniedermeyer
2014-06-27 9:04 ` Lukáš Czerner [this message]
2014-06-27 9:08 ` Artem Bityutskiy
2014-06-27 9:09 ` Bityutskiy, Artem
2014-06-27 2:48 ` Dave Chinner
[not found] <CACVxJT_6sp=KDy=jCNBypYapKv_59W8LxFU4OiJEm6gt_SuZKg@mail.gmail.com>
2014-06-25 11:21 ` Alexey Dobriyan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.1406271103070.2349@localhost.localdomain \
--to=lczerner@redhat.com \
--cc=bernd.schubert@itwm.fraunhofer.de \
--cc=david@fromorbit.com \
--cc=dedekind1@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcsim.planeta@gmail.com \
--cc=ms@citd.de \
--cc=rientjes@google.com \
--cc=thomas.knauth@gmx.de \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®