Find the answer to your Linux question:
Results 1 to 7 of 7
When ever I copy a file CPU use goes up to 100, from a usb external hdd or just copying between harddrives it always goes to 100. The process using ...
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Location
    Ireland
    Posts
    50

    100% CPU while copying files

    When ever I copy a file CPU use goes up to 100, from a usb external hdd or just copying between harddrives it always goes to 100. The process using the CPU doesnt show up in top. except kjournald spikes to 30 sometimes. I can copy the files from the network via ftp at about the same speed or faster and hardly any cpu use, except for pdflush spiking every few seconds.

    I am using 2.6.11.11 and I remember that it didnt always do it with 2.6.10. also when the cpu does go up my mouse gets really jumpy.

    Even speeds like 500k/s it uses 100%. If I use ftp at that speed it uses only a few %. for copying between drives i get speeds of 11mbytes first, thn it kreeps down to 3 or 4. any ideas how to fix this strange behaviour?

  2. #2
    Linux Engineer psic's Avatar
    Join Date
    Nov 2004
    Location
    Ljubljana, Slovenia
    Posts
    1,205
    Do you have DMA turned on?
    Stumbling around the 'net:
    www.cloudyuseful.com

  3. #3
    Just Joined!
    Join Date
    Feb 2005
    Location
    Ireland
    Posts
    50
    yuppers.. at least thats what hdparm tells me.

  4. #4
    Linux Newbie
    Join Date
    Dec 2003
    Location
    Netherlands
    Posts
    193
    If you have DMA2 you´re transfer rate will be 66, when you´ve got DMA4/5 you´ve got 100/133.
    Computers Are Like Air Conditioners... They\'re both useless with Windows open!

  5. #5
    Just Joined!
    Join Date
    Aug 2005
    Location
    norway
    Posts
    2
    Quote Originally Posted by Mystic_Slayer
    If you have DMA2 you´re transfer rate will be 66, when you´ve got DMA4/5 you´ve got 100/133.
    Where can i change that? i've got the same problem, realy irritating! :P This also happens when i copy from a CD/DVD or if i'm burning a CD/DVD...

  6. #6
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401

    hdparm

    On shell:

    Code:
    hdparm -d1 -X 64 (62 * DMA mode... -> this set udma2)
    From hdparm configuration file /etc/hdparm.conf:

    Code:
    /dev/hda {
            transfer_mode = 67
            dma = on
    }
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

  7. #7
    Just Joined!
    Join Date
    Aug 2005
    Location
    Norway
    Posts
    6
    Found out that this only happens with my cd-rom's, while playing a movie/series or while copying. DMA is turned on, but 100% cpu is used... What should i do?

    #/dev/cdroms/cdrom0 {
    # dma = on
    # interrupt_unmask = on
    # io32_support = 0
    #}

    This is further up:
    # -d disable/enable the "using_dma" flag for this drive
    #dma = off

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •