All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shawn Starr <Shawn.Starr@Home.net>
To: Andrew Morton <andrewm@uow.edu.au>
Cc: Shawn Starr <Shawn.Starr@Home.com>, Chris Mason <mason@suse.com>,
	"reiserfs-list@namesys.com" <reiserfs-list@namesys.com>,
	linux-kernel@vger.kernel.org
Subject: Re: Kernel 2.4.x and 2.4.1-preX - Higher latency then 2.2.xkernels?
Date: Sun, 28 Jan 2001 16:53:58 -0500	[thread overview]
Message-ID: <3A7494F6.33DEE3CE@Home.net> (raw)
In-Reply-To: <186870000.980100593@tiny> <3A6B6FDE.93AF69CC@Home.net> <3A72820A.1488BDC@uow.edu.au> <3A7280F5.F122FE35@Home.com> <3A738A36.F6294623@Home.net> <3A740682.3FB72EF4@uow.edu.au>

Will this patch work with the low-latency patch? I have a few other patches in this kernel (one
fixing the ps hang issue).

Andrew Morton wrote:

> Shawn Starr wrote:
> >
> > Andrew, the patch HAS made a difference. For example, while untaring glibc-2.2.1.tar.gz the
> > system was not sluggish (mouse movements in X) etc.
> >
> > Seems to be a go for latency improvements on this system.
>
> Shawn,
>
> could you please try this patch in a pristine 2.4.1-pre10? It
> gets reiserfs down to 4 milliseconds worst case.  If the
> system's interactivity is still sluggish with this then
> reiserfs isn't the cause.
>
> Thanks.
>
> --- linux-2.4.1-pre10/include/linux/reiserfs_fs.h       Tue Jan 23 19:28:16 2001
> +++ linux-akpm/include/linux/reiserfs_fs.h      Sun Jan 28 22:37:11 2001
> @@ -1161,7 +1161,8 @@
>  #define fs_generation(s) ((s)->u.reiserfs_sb.s_generation_counter)
>  #define get_generation(s) atomic_read (&fs_generation(s))
>  #define FILESYSTEM_CHANGED_TB(tb)  (get_generation((tb)->tb_sb) != (tb)->fs_gen)
> -#define fs_changed(gen,s) (gen != get_generation (s))
> +#define __fs_changed(gen,s) (gen != get_generation (s))
> +#define fs_changed(gen,s) ({if (current->need_resched) schedule(); __fs_changed(gen,s);})
>
>
>  /***************************************************************************/
> --- linux-2.4.1-pre10/fs/reiserfs/journal.c     Tue Jan 23 19:28:15 2001
> +++ linux-akpm/fs/reiserfs/journal.c    Sun Jan 28 22:31:12 2001
> @@ -2649,6 +2649,8 @@
>        }
>  #endif
>        wait_on_buffer(bh) ;
> +      if (current->need_resched)
> +       schedule();
>      }
>      retry_count++ ;
>    }
> @@ -3085,6 +3087,8 @@
>      /* copy all the real blocks into log area.  dirty log blocks */
>      if (test_bit(BH_JDirty, &cn->bh->b_state)) {
>        struct buffer_head *tmp_bh ;
> +      if (current->need_resched)
> +        schedule();
>        tmp_bh = getblk(p_s_sb->s_dev, reiserfs_get_journal_block(p_s_sb) +
>                      ((cur_write_start + jindex) % JOURNAL_BLOCK_COUNT),
>                                        p_s_sb->s_blocksize) ;
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

      reply	other threads:[~2001-01-28 21:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-20 19:50 Kernel 2.4.x and 2.4.1-preX - Higher latency then 2.2.x kernels? Shawn Starr
2001-01-20 19:59 ` Gregory Maxwell
2001-01-20 20:16   ` Shawn Starr
2001-01-21 18:09   ` Chris Mason
2001-01-21 23:25     ` Kernel 2.4.x and 2.4.1-preX - Higher latency then 2.2.xkernels? Shawn Starr
2001-01-27  8:08       ` Andrew Morton
2001-01-27  8:04         ` Shawn Starr
2001-01-28  2:55           ` Shawn Starr
2001-01-28  3:29             ` Andrew Morton
2001-01-28  3:59               ` Shawn Starr
2001-01-28 19:17               ` Chris Mason
2001-01-29  0:33                 ` Shawn Starr
2001-01-28 11:46             ` Andrew Morton
2001-01-28 21:53               ` Shawn Starr [this message]

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=3A7494F6.33DEE3CE@Home.net \
    --to=shawn.starr@home.net \
    --cc=Shawn.Starr@Home.com \
    --cc=andrewm@uow.edu.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mason@suse.com \
    --cc=reiserfs-list@namesys.com \
    /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.