Re: [BK][PATCH] Reiser4, will double Linux FS performance, pleaseapply

Tomas Szepe (szepe@pinerecords.com)
Tue, 5 Nov 2002 11:23:26 +0100


> > I just noticed the file
> > http://thebsh.namesys.com/snapshots/2002.10.31/reiser4.diff
> > had changed, the difference from the original 20021031 snapshot being:
> >
> > --- fs_reiser4.diff.old 2002-10-31 14:11:50.000000000 +0100
> > +++ fs_reiser4.diff.new 2002-11-04 16:57:46.000000000 +0100
> > @@ -46903,7 +46903,7 @@
> > +#if REISER4_USER_LEVEL_SIMULATION
> > +# define check_spin_is_locked(s) spin_is_locked(s)
> > +# define check_spin_is_not_locked(s) spin_is_not_locked(s)
> > -+#elif defined( CONFIG_DEBUG_SPINLOCK ) && defined( CONFIG_SMP )
> > ++#elif 0 && defined( CONFIG_DEBUG_SPINLOCK ) && defined( CONFIG_SMP )
> > +# define check_spin_is_not_locked(s) ( ( s ) -> owner != get_current() )
> > +# define spin_is_not_locked(s) ( ( s ) -> owner == NULL )
> > +# define check_spin_is_locked(s) ( ( s ) -> owner == get_current() )
> >
> > So either someone is messing about with your webserver or you want multiple
> > versions of the supposedly same diff floating around (not exactly suitable
> > for gathering bugreports, is it?). If you're short on disk space, how about
> > gzipping the fs diff? Squeezes down to ~500k from almost 2MB.
>
> done for 2002.10.31 snapshot.

Well the point is -- could you create a new dir each time you do updates
to the current snapshot?

Here's export-pagevec_deactivate_inactive.diff for 2.5.46:

diff -urN linux-2.5.46/mm/Makefile linux-2.5.46r4/mm/Makefile
--- linux-2.5.46/mm/Makefile 2002-11-05 11:07:21.000000000 +0100
+++ linux-2.5.46.1/mm/Makefile 2002-11-05 11:13:11.000000000 +0100
@@ -2,7 +2,7 @@
# Makefile for the linux memory manager.
#

-export-objs := shmem.o filemap.o mempool.o page_alloc.o page-writeback.o
+export-objs := shmem.o filemap.o mempool.o page_alloc.o page-writeback.o swap.o

obj-y := memory.o mmap.o filemap.o fremap.o mprotect.o mlock.o mremap.o \
vmalloc.o slab.o bootmem.o swap.o vmscan.o page_alloc.o \
diff -urN linux-2.5.46/mm/swap.c linux-2.5.46.1/mm/swap.c
--- linux-2.5.46/mm/swap.c 2002-11-05 11:07:21.000000000 +0100
+++ linux-2.5.46.1/mm/swap.c 2002-11-05 11:13:35.000000000 +0100
@@ -23,6 +23,7 @@
#include <linux/buffer_head.h>
#include <linux/prefetch.h>
#include <linux/percpu.h>
+#include <linux/module.h>

/* How many pages do we try to swap or page in/out together? */
int page_cluster;
@@ -227,6 +228,7 @@
spin_unlock_irq(&zone->lru_lock);
__pagevec_release(pvec);
}
+EXPORT_SYMBOL(pagevec_deactivate_inactive);

/*
* Add the passed pages to the LRU, then drop the caller's refcount
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/