mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andre Hedrick <andre@linux-ide.org>
To: Daniel Kobras <kobras@tat.physik.uni-tuebingen.de>
Cc: Andrew Morton <akpm@zip.com.au>,
	Oliver Xymoron <oxymoron@waste.org>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: ext3: kjournald and spun-down disks
Date: Mon, 26 Nov 2001 16:03:54 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.10.10111261559020.9508-100000@master.linux-ide.org> (raw)
In-Reply-To: <20011127002525.A2912@pelks01.extern.uni-tuebingen.de>

On Tue, 27 Nov 2001, Daniel Kobras wrote:

> On Fri, Nov 23, 2001 at 05:25:46PM -0800, Andrew Morton wrote:
> > Also, if we had appropriate hooks into the request layer, we could detect
> > when the disk was being spun up for a read, and opporunistically flush
> > out any pending writes.
> 
> Actually you can't. SCSI spinup code isn't very useful anyway, and IDE disks
> mostly handle spinup themselves. The kernel has too issue a reset to get a
> disk back alive from sleep mode, but revival from standby doesn't involve
> the kernel at all. When using the disk's internal timer, it isn't involved in
> spindown either. Teaching the request layer about disk state might therefore
> turn out to become rather messy, I suspect.

No messier than corrupted data --

> > Tell me if this is joyful:
> [...]
> > -	transaction->t_expires = jiffies + journal->j_commit_interval;
> > +	transaction->t_expires = jiffies + dirty_buffer_flush_interval();
> 
> This change doesn't take care of kupdated's most interesting feature, i.e.
> that you can entirely stop it (with a flush interval of zero and/or a
> SIGSTOP). Now, if kjournald honoured SIGSTOP/SIGCONT, I could teach noflushd
> to handle the spindown issue in userland. Uh, at least for one small detail:
> Is there a way to tell which kjournald process is associated to which
> partition? A fake cmdline, or an fd to the partition's device node that
> shows up in /proc/<pid>/fd would indeed be quite helpful.

LOL

The low-level spindles can not walk backwards to find a partition because
of the bogus aliased/virtual LBA(0)s that litter a spindle.  The LBA(0)
count == Number of Partitions + 1;

This is utter crap but it is scheduled to be fixed in 2.5, now that it has
started.

Solution : Do not partition use the entire raw device but that will not
work because of the real LBA 0 -- EEK

Cheers,

Andre Hedrick
CEO/President, LAD Storage Consulting Group
Linux ATA Development
Linux Disk Certification Project


  parent reply	other threads:[~2001-11-27  0:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-24  1:10 Oliver Xymoron
2001-11-24  1:25 ` Andrew Morton
2001-11-24  1:58   ` Oliver Xymoron
2001-11-24  2:32     ` Andrew Morton
2001-11-26  3:15       ` Oliver Xymoron
2001-11-26  3:34         ` Andrew Morton
2001-11-26 15:22           ` Oliver Xymoron
2001-11-26 23:25   ` Daniel Kobras
2001-11-26 23:40     ` Andrew Morton
2001-11-27  0:18       ` Andreas Dilger
2001-11-27  0:03     ` Andre Hedrick [this message]
2001-11-27  0:21     ` Oliver Xymoron

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=Pine.LNX.4.10.10111261559020.9508-100000@master.linux-ide.org \
    --to=andre@linux-ide.org \
    --cc=akpm@zip.com.au \
    --cc=kobras@tat.physik.uni-tuebingen.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oxymoron@waste.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 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®