public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
  • [parent not found: <fa.ljb660n.d2ofa9@ifi.uio.no>]
  • [parent not found: <fa.ld6rcgc.1lhmd9q@ifi.uio.no>]
    * 2.6.4 : 100% CPU use on EIDE disk operarion, VIA chipset
    @ 2004-04-02 21:54 Mikhail Ramendik
      0 siblings, 0 replies; 10+ messages in thread
    From: Mikhail Ramendik @ 2004-04-02 21:54 UTC (permalink / raw)
      To: linux-kernel
    
    Hello,
    
    I have an computer with an AMD Duron, and the motehrboard chipset is VIA
    KT133. The hard drive is a Seagate Barracuda 7200.7 ; no other EIDE
    devices are attached.
    
    I run an RH9-based distro, and added a 2.6.4 kernel to it. The following
    problem was tested with two kernel variants: 2.6.4+wolk2/0 with
    preeemption enabled, and 2.6.4 plain from kernel.org with preemption
    disabled. No difference.
    
    I noticed performance problems with 2.6.4, and tracked them to strange
    HDD behavior.
    
    It turned out that on disk-intensive operation, the "system" CPU usage
    skyrockets. With a mere "cp" of a large file to the same direstory
    (tested with ext3fs and FAT32 file systems), it is 100% practically all
    of the time !
    
    On stock distro kernel (2.4.20) the CPU load in the same situation
    varies from 0 to 15-20% with small peaks to about 40%.
    
    "cp" actually takes less time on 2.6.4 (with a file of the same size).
    However the CPU load is scary, and I suspect that it adversely affects
    overall performance.
    
    Besides, with default settings, the results of "hdparm -tT /dev/hda0"
    are substandard on 2.6.4. The "Timing buffered disk reads" averages
    about 38 MB/sec on 2.4.20, about 27 MB/sec on 2.6.4.
    
    This changes after I set large read ahead: "hdparm -a8192 /dev/hda0" .
    "Timing buffered disk reads" becomes about 45 MB/s. But the CPU load
    does not change. The "cp" performance (time to copy a large file) also
    does not change noticeably.
    
    IANAKH (I am Not A Kernel Hacker), but I like kernel 2.6.x and would be
    willing to run tests, and try various builds, to help pinpoint any
    problem.
    
    Here is some output that may be relevant:
    
    # cat /proc/ide/via
    ----------VIA BusMastering IDE Configuration----------------
    Driver Version:                     3.38
    South Bridge:                       VIA vt82c686a
    Revision:                           ISA 0x22 IDE 0x10
    Highest DMA rate:                   UDMA66
    BM-DMA base:                        0xd000
    PCI clock:                          33.3MHz
    Master Read  Cycle IRDY:            0ws
    Master Write Cycle IRDY:            0ws
    BM IDE Status Register Read Retry:  yes
    Max DRDY Pulse Width:               No limit
    -----------------------Primary IDE-------Secondary IDE------
    Read DMA FIFO flush:          yes                 yes
    End Sector FIFO flush:         no                  no
    Prefetch Buffer:              yes                 yes
    Post Write Buffer:            yes                  no
    Enabled:                      yes                 yes
    Simplex only:                  no                  no
    Cable Type:                   80w                 40w
    -------------------drive0----drive1----drive2----drive3-----
    Transfer Mode:       UDMA       PIO       PIO       PIO
    Address Setup:       30ns     120ns     120ns     120ns
    Cmd Active:          90ns      90ns     480ns     480ns
    Cmd Recovery:        30ns      30ns     480ns     480ns
    Data Active:         90ns     330ns     330ns     330ns
    Data Recovery:       30ns     270ns     270ns     270ns
    Cycle Time:          30ns     600ns     600ns     600ns
    Transfer Rate:   66.6MB/s   3.3MB/s   3.3MB/s   3.3MB/s
    
    # hdparm /dev/hda 
    
    /dev/hda:
     multcount    = 16 (on)
     IO_support   =  1 (32-bit)
     unmaskirq    =  1 (on)
     using_dma    =  1 (on)
     keepsettings =  0 (off)
     readonly     =  0 (off)
     readahead    = 8192 (on)    
     geometry     = 16383/255/63, sectors = 156301488, start = 0
    
    (readahead was 256 before I changed it using hdparm -a)
    
    Sincerely yours, and with big thanks to all the kernel authors,
    Mikhail Ramendik
    Moscow, Russia
    
    P.S. I am not subscribed. I will watch the thread over the Web, but if I
    need to provide additional info, or run some tests, or try any other
    build of the kernel - please CC me for faster reaction.
    
    
    
    
    
    ^ permalink raw reply	[flat|nested] 10+ messages in thread

    end of thread, other threads:[~2004-04-05  2:12 UTC | newest]
    
    Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <fa.g80v5s8.b2ofhi@ifi.uio.no>
         [not found] ` <fa.idlmgtf.1pluljl@ifi.uio.no>
    2004-04-04  8:07   ` 2.6.4 : 100% CPU use on EIDE disk operarion, VIA chipset Andreas Hartmann
    2004-04-05  2:12     ` Bill Davidsen
         [not found] ` <fa.ljb660n.d2ofa9@ifi.uio.no>
    2004-04-04  8:24   ` Andreas Hartmann
    2004-04-04 19:57     ` Mikhail Ramendik
    2004-04-05  2:14       ` Bill Davidsen
         [not found] <fa.ld6rcgc.1lhmd9q@ifi.uio.no>
    2004-04-03 11:24 ` Andreas Hartmann
    2004-04-03 12:51   ` Bill Davidsen
    2004-04-03 14:12   ` Mikhail Ramendik
    2004-04-04  8:02   ` Mikhail Ramendik
    2004-04-02 21:54 Mikhail Ramendik
    

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