lkml.org 
[lkml]   [2006]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectX86_64 and X86_32 bit performance difference [Revisited]
    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
    -
    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/

    \
     
     \ /
      Last update: 2006-01-09 07:31    [W:3.048 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site