public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: khromy@lnuxlab.ath.cx (khromy)
To: linux-kernel@vger.kernel.org, ext3-users@redhat.com
Subject: sync slowness. ext3 on VIA vt82c686b
Date: Tue, 2 Jul 2002 22:20:51 -0400	[thread overview]
Message-ID: <20020703022051.GA2669@lnuxlab.ath.cx> (raw)

When I copy a file(13Megs) from /home/ to /tmp/, sync takes almost 2 minutes. 
When I copy the same file to /usr/local/, sync returns almost right away.  Both 
filesystems are ext3 and are on the same harddrive.  When sync is running, 
the harddrive light stays on but I don't hear it doing anything. dmesg doesn't 
show any errors either. Below is the `time` output for each command.  If you 
need anymore information  let me know..

The CPU is a PIII866 with 512MB RAM.

$ uname -a
Linux dev-01 2.4.19-pre10-ac2 #3 Sun Jun 30 18:56:04 EDT 2002 i686 unknown

$ hdparm /dev/hda
/dev/hda:
 multcount    = 16 (on)
 I/O support  =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 1868/255/63, sectors = 30015216, start = 0
 busstate     =  1 (on)

$ cat /proc/mounts
/dev/hda1 /	ext3 rw,noatime 0 0
/dev/hda2 /home	ext3 rw,noatime 0 0
/dev/hda3 /usr	ext3 rw,noatime 0 0

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             387M  162M  205M  45% /
/dev/hda2             3.4G  2.1G  1.1G  65% /home
/dev/hda3              10G  6.3G  3.4G  65% /usr

$ cat /proc/ide/via
----------VIA BusMastering IDE Configuration----------------
Driver Version:                     3.34
South Bridge:                       VIA vt82c686b
Revision:                           ISA 0x40 IDE 0x6
Highest DMA rate:                   UDMA100
BM-DMA base:                        0xc000
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:               no                  no
Post Write Buffer:             no                  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      30ns     120ns
Cmd Active:          90ns      90ns      90ns      90ns
Cmd Recovery:        30ns      30ns      30ns      30ns
Data Active:         90ns     330ns      90ns     330ns
Data Recovery:       30ns     270ns      30ns     270ns
Cycle Time:          30ns     600ns     120ns     600ns
Transfer Rate:   66.6MB/s   3.3MB/s  16.6MB/s   3.3MB/s

$ ls -al mozilla-i686-pc-linux-gnu-sea.tar.gz
-rw-rw-r--    1 khromy   khromy        13M Jul  2 07:42
mozilla-i686-pc-linux-gnu-sea.tar.gz

* time output when I copy to /usr/local

$ time cp mozilla-i686-pc-linux-gnu-sea.tar.gz /usr/local/
0.00user 0.19system 0:00.18elapsed 102%CPU (0avgtext+0avgdata 0maxresident)k

$ time sync
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k

$ time rm /usr/local/mozilla-i686-pc-linux-gnu-sea.tar.gz
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k

* time output when I copy to /tmp

$ time cp mozilla-i686-pc-linux-gnu-sea.tar.gz /tmp/
0.01user 0.24system 0:00.25elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k

$ time sync
0.00user 0.05system 1:39.14elapsed 0%CPU (0avgtext+0avgdata 0maxresident)k

$ time rm /tmp/mozilla-i686-pc-linux-gnu-sea.tar.gz
0.00user 0.05system 0:00.05elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k

-- 
L1:	khromy		;khromy(at)lnuxlab.ath.cx

             reply	other threads:[~2002-07-03  2:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-03  2:20 khromy [this message]
2002-07-03  2:57 ` sync slowness. ext3 on VIA vt82c686b khromy
2002-07-03  3:24 ` Andrew Morton
2002-07-03  3:35   ` khromy
2002-07-03  3:57     ` Andrew Morton
2002-07-03  4:03       ` khromy
2002-07-03  4:36         ` khromy
2002-07-03 16:29           ` Diego Calleja
2002-07-03 17:25           ` Diego Calleja
2002-07-03 17:43   ` Tomas Szepe
2002-07-03 18:19     ` khromy
2002-07-03 19:05       ` Tomas Szepe
2002-07-03 21:54       ` Rogier Wolff
2002-07-03  9:22 ` Stephen C. Tweedie
2002-07-03  9:40   ` khromy
2002-07-03 10:57     ` Rogier Wolff
2002-07-03 16:38       ` khromy
2002-07-03 11:43     ` Pedro M. Rodrigues
     [not found]     ` <Pine.LNX.4.33.0207031155080.7491-100000@coffee.psychology.mcmaster.ca>
2002-07-03 16:42       ` khromy
2002-07-03 10:25 ` Denis Vlasenko
2002-07-03  5:59   ` khromy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020703022051.GA2669@lnuxlab.ath.cx \
    --to=khromy@lnuxlab.ath.cx \
    --cc=ext3-users@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox