All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Buesch <fsdeveloper@yahoo.de>
To: Andrew Morton <akpm@zip.com.au>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: pdflush -> noflushd related question
Date: Sat, 31 May 2003 18:41:59 +0200	[thread overview]
Message-ID: <200305311841.59599.fsdeveloper@yahoo.de> (raw)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I want to fix the userspace noflushd daemon to run on 2.5 kernels,
but it seems to get *very* tricky, because bdflush, kupdated have been
replaced by pdflush.

I've grepped through the lkml-archives and I found a post from you, Andrew,
that sayed:

[SNIP]
Subject: [patch] replace kupdate and bdflush with pdflush

- - use a timer to kick off a pdflush thread every five seconds
  to run the kupdate code. 

- - wakeup_bdflush() kicks off a pdflush thread to run the current
  bdflush function.

There's some loss of functionality here - the ability to tune
the writeback periods.  The numbers are hardwired at present.
But the intent is that buffer-based writeback disappears
altogether.  New mechanisms for tuning the writeback will
need to be introduced.
[SNIP]


Yea, but it seems, that I need exactly this lost functionality. :)
noflushd, on 2.4 kernels, prevents the disks to spin up by spinning
them down an stopping the kupdated daemon through putting
the update-interval to 0 via syscall bdflush().
That's the code to do so:
bdflush(2 + (1 << 3) + 1, interval);

So, how to set the interval, or better sayed, how to _stop_
buffer flushing in 2.5?
Has this lost functionality already been re-implemented?
Are there new syscalls?

Thanks for your help.

- -- 
Regards Michael Büsch
http://www.8ung.at/tuxsoft
 18:29:24 up  4:01,  2 users,  load average: 1.11, 1.09, 1.05

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+2NtXoxoigfggmSgRArisAJ9KTnvSW51e4OnLvkvjI/D/bUF19ACeK9Yw
xOVOelmYmHd9eC7Unuys8pM=
=t+79
-----END PGP SIGNATURE-----


             reply	other threads:[~2003-05-31 16:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-31 16:41 Michael Buesch [this message]
2003-05-31 17:58 ` pdflush -> noflushd related question Andrew Morton
2003-05-31 18:24   ` Michael Buesch
2003-05-31 18:36   ` Michael Buesch
2003-05-31 18:42     ` Andrew Morton

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=200305311841.59599.fsdeveloper@yahoo.de \
    --to=fsdeveloper@yahoo.de \
    --cc=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.