From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 28 Jan 2001 16:54:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 28 Jan 2001 16:54:33 -0500 Received: from femail3.rdc1.on.home.com ([24.2.9.90]:24796 "EHLO femail3.rdc1.on.home.com") by vger.kernel.org with ESMTP id ; Sun, 28 Jan 2001 16:54:22 -0500 Message-ID: <3A7494F6.33DEE3CE@Home.net> Date: Sun, 28 Jan 2001 16:53:58 -0500 From: Shawn Starr Organization: Visualnet X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.1-pre10a i586) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Morton CC: Shawn Starr , Chris Mason , "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? 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> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/