public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* X86_64 and X86_32 bit performance difference [Revisited]
@ 2006-01-09  6:29 Nauman Tahir
  2006-01-09  7:51 ` Arjan van de Ven
  2006-01-09 18:27 ` Andi Kleen
  0 siblings, 2 replies; 7+ messages in thread
From: Nauman Tahir @ 2006-01-09  6:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: kernelnewbies

Hello All
I have posted this problem before. Now mailing again after testing as
recommeded in previous replys.
My configuration is:

Hardware:
HP Proliant DL145 (2 x AMD Optaron 144)
14 GB RAM

OS:
FC 4

Kernel
2.6.xx

As suggested by some friend, I compiled same kermel with maximum
possible common configuration options both on 32 and 64 bit. Tested my
deriver and got the same result.
Let me explain in detail whats going on.
I have a block device driver which uses my RAMDISK for caching the
data for some Target disk.
I have implemented two simple caching policies in it. I am running
IOTEST to see the IO rate of my driver. My RAMDISK differs for 32 and
64 bit versions. 32 bit version uses kmap family to read/write data
to/from memory while 64 bit version uses __va function call to get the
virtual address directly to avoid ioremap which sleeps and slows down
the IO rate considerably.RAMDISK individually gives very high IO rate
with IOTEST but perormance with my driver gets about one fourth. This
only happens when I run the whole thing on X86_64 bit compiled kernel.
Things works well on 32 bit version. Driver for both versions is same.
I can also not figure out what kernel configuration option is making
the difference if there is any.

My code does not seems to have portablility issues. Like calculations
are based on unsigned long. There are few threads involved based on
kernel_thread as used in MD driver.

Any ideas whats is the cause of performance difference? what areas to
look for ??

Nauman

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-01-10 21:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-09  6:29 X86_64 and X86_32 bit performance difference [Revisited] Nauman Tahir
2006-01-09  7:51 ` Arjan van de Ven
2006-01-10 10:49   ` Nauman Tahir
2006-01-10 10:53     ` Nauman Tahir
2006-01-10 21:14     ` Arjan van de Ven
2006-01-09 18:27 ` Andi Kleen
2006-01-10 10:50   ` Nauman Tahir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox