lkml.org 
[lkml]   [2001]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch] zero-bounce block highmem I/O, #13
On Tue, Aug 28 2001, Christoph Rohland wrote:
> Hi Jens,
>
> I tested both #11 and #13 on my 8GB machine with sym53c8xx. The
> initialization of a SAP DB database takes 20 minutes with 2.4.9 and
> with 2.4.9+b13 it took nearly 2.5 hours :-(

DaveM hinted that it's probably the bounce test failing, so it's
bouncing all the time. That would explain the much worse performance.
Could you try with this incremental patch on top of b13 for 2.4.9? I
still want to see the boot detection info, btw.

THanks!

--
Jens Axboe

diff -ur --exclude-from /home/axboe/exclude /opt/kernel/linux-2.4.9/arch/i386/kernel/setup.c linux/arch/i386/kernel/setup.c
--- /opt/kernel/linux-2.4.9/arch/i386/kernel/setup.c Wed Jul 11 18:31:44 2001
+++ linux/arch/i386/kernel/setup.c Mon Aug 27 15:03:14 2001
@@ -152,6 +152,8 @@
static int disable_x86_serial_nr __initdata = 1;
static int disable_x86_fxsr __initdata = 0;

+unsigned long max_pfn;
+
/*
* This is set up by the setup-routine at boot-time
*/
@@ -768,7 +770,7 @@
void __init setup_arch(char **cmdline_p)
{
unsigned long bootmap_size, low_mem_size;
- unsigned long start_pfn, max_pfn, max_low_pfn;
+ unsigned long start_pfn, max_low_pfn;
int i;

#ifdef CONFIG_VISWS
diff -ur --exclude-from /home/axboe/exclude /opt/kernel/linux-2.4.9/drivers/block/ll_rw_blk.c linux/drivers/block/ll_rw_blk.c
--- /opt/kernel/linux-2.4.9/drivers/block/ll_rw_blk.c Tue Aug 28 12:51:56 2001
+++ linux/drivers/block/ll_rw_blk.c Mon Aug 27 15:03:42 2001
@@ -125,7 +125,7 @@
*/
static int queue_nr_requests, batch_requests;

-unsigned long blk_max_low_pfn;
+unsigned long blk_max_low_pfn, blk_max_pfn;

static inline int get_max_sectors(kdev_t dev)
{
@@ -1207,6 +1207,7 @@
printk("block: %d slots per queue, batch=%d\n", queue_nr_requests, batch_requests);

blk_max_low_pfn = max_low_pfn;
+ blk_max_pfn = max_pfn;

#ifdef CONFIG_AMIGA_Z2RAM
z2_init();
@@ -1328,4 +1329,5 @@
EXPORT_SYMBOL(generic_unplug_device);
EXPORT_SYMBOL(blk_queue_bounce_limit);
EXPORT_SYMBOL(blk_max_low_pfn);
+EXPORT_SYMBOL(blk_max_pfn);
EXPORT_SYMBOL(blk_seg_merge_ok);
diff -ur --exclude-from /home/axboe/exclude /opt/kernel/linux-2.4.9/include/linux/blkdev.h linux/include/linux/blkdev.h
--- /opt/kernel/linux-2.4.9/include/linux/blkdev.h Tue Aug 28 12:51:56 2001
+++ linux/include/linux/blkdev.h Mon Aug 27 14:58:02 2001
@@ -126,10 +126,10 @@
wait_queue_head_t wait_for_request;
};

-extern unsigned long blk_max_low_pfn;
+extern unsigned long blk_max_low_pfn, blk_max_pfn;

#define BLK_BOUNCE_HIGH (blk_max_low_pfn * PAGE_SIZE)
-#define BLK_BOUNCE_ANY (~(unsigned long long) 0)
+#define BLK_BOUNCE_ANY (blk_max_pfn * PAGE_SIZE)

extern void blk_queue_bounce_limit(request_queue_t *, dma64_addr_t);

diff -ur --exclude-from /home/axboe/exclude /opt/kernel/linux-2.4.9/include/linux/bootmem.h linux/include/linux/bootmem.h
--- /opt/kernel/linux-2.4.9/include/linux/bootmem.h Wed Aug 15 23:22:13 2001
+++ linux/include/linux/bootmem.h Mon Aug 27 14:53:47 2001
@@ -18,6 +18,11 @@
extern unsigned long min_low_pfn;

/*
+ * highest page
+ */
+extern unsigned long max_pfn;
+
+/*
* node_bootmem_map is a map pointer - the bits represent all physical
* memory pages (including holes) on the node.
*/
\
 
 \ /
  Last update: 2005-03-22 12:58    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site