HI, I am trying to find out why an old slower machineis faster than a new faster machine. I have a RedHat 6.2 server installation, it runs samba and I have been very happy with it. Filesystem is:- [darryl@keg darryl]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/hda6 1.2G 735M 387M 66% / /dev/hda1 40M 3.0M 35M 8% /boot /dev/hdc1 6.2G 351M 5.6G 6% /home /dev/hdd1 12G 3.3G 8.0G 29% /opt /dev/hdc5 5.7G 2.2G 3.2G 40% /usr/local/backup CPU, Celeron 433Mhz, 1Gb RAM, RH 6.2 Samba Version 2.0.7 /usr/local/backup is shared as a samba share which I have mounted as V:... I now have a second server, it is an Athlon 1.6Ghz CPU, 512Mb Ram with SCSI drive as main drive, IDE as aux and storage running RedHat 7.3 installation, Filesystem is:- [darryl@cascade darryl]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda6 372M 91M 262M 26% / /dev/sda1 45M 8.9M 34M 21% /boot /dev/sda5 703M 222M 445M 34% /home none 251M 0 251M 0% /dev/shm /dev/sda2 1.9G 1.7G 125M 94% /usr /dev/sda7 251M 116M 122M 49% /var /dev/hda1 19G 2.2G 16G 12% /usr/local/backup /dev/hda2 17G 4.3G 12G 26% /opt/archive CPU Athlon 1.4Ghz, 512Mb RAM, RH7.3 Samba V2.2.3a /usr/local/backup is shared as a samba share which I have mounted as Z:... Both machines run off a 100Mbps network and switch.. so I doubt the network is a problem. (infact if it is the network it is the network CARD as the network is only these three machines) The 6.2 machine runs fine, quick response. the 7.3 machine is slow, seconds delay when clicking on folders via Windows to open them. My desktop is a Win2k machine. Why would the newer machine be slower ?? I am at a loss. I suspect the SCSI drive, but cannot explain why.. Anyone got any methods or ways I can find out what is slowing it down? I wish to replace the Celeron machine, but as of now, i see no reason why as it is faster!?!? Thanks Darryl
Martyn Ranyard
2002-Jun-14 05:03 UTC
[Samba] Slow response from new Athlon 1.4Ghz machine?
At 09:46 PM 6/14/02 +1000, Darryl Harvey wrote:> I suspect the SCSI drive, but cannot explain why..hdparm is a useful tool for measuring the speed of a drive. HTH -------------- Martyn Ranyard I am not a member of the samba team, and anything that I say may not be as accurate as a response from one of the team. I reply to save those more qualified time, which can more usefully be spent developing SAMBA further.
On Fri, 14 Jun 2002, Darryl Harvey wrote:> Why would the newer machine be slower ?? I am at a loss. I suspect the > SCSI drive, but cannot explain why.. Anyone got any methods or ways I can > find out what is slowing it down?Run a benchmark on the systems and compare disk performance ("bonnie" is one). If it's a lot slower it is probably a misconfiguration and not that the hardware is slower. So verify that the new machine doesn't try to lookup names that doesn't exist or something like that (enabling nis in nsswitch.conf but not having a NIS system). tcpdump/ethereal can be used to see what is being sent on the network for the 6.2 and 7.3 machines. An other common misconfiguration is having mixes of full and half duplex on the network cards. Verify the network speeds with something not related to smb (ftp or a "real" networking benchmark like netperf). /Urban
At 09:59 PM 14/06/2002, you wrote:>At 09:46 PM 6/14/02 +1000, Darryl Harvey wrote: >> I suspect the SCSI drive, but cannot explain why.. > >hdparm is a useful tool for measuring the speed of a drive. > >HTHAh, thanks, with a quick test; [darryl@cascade darryl]$ sudo hdparm -t /dev/hda2 /dev/hda2: Timing buffered disk reads: 64 MB in 2.61 seconds = 24.52 MB/sec [darryl@cascade darryl]$ sudo hdparm -t /dev/hda1 /dev/hda1: Timing buffered disk reads: 64 MB in 3.01 seconds = 21.26 MB/sec [darryl@cascade darryl]$ sudo hdparm -t /dev/sda6 /dev/sda6: Timing buffered disk reads: 64 MB in 14.77 seconds = 4.33 MB/sec [darryl@cascade darryl]$ sudo hdparm -t /dev/sda5 /dev/sda5: Timing buffered disk reads: 64 MB in 10.50 seconds = 6.10 MB/sec Looks like he SCSI drive is a little slow !!!! Maybe time to pull it out (or see whats wrong) Thanks Darryl
At 09:59 PM 14/06/2002, you wrote:>At 09:46 PM 6/14/02 +1000, Darryl Harvey wrote: >> I suspect the SCSI drive, but cannot explain why.. > >hdparm is a useful tool for measuring the speed of a drive.Hmm, more tests show that the FAST machine, has slower hard disks than the SLOW machine: IE: SLOW machine; [darryl@cascade darryl]$ sudo hdparm -t /dev/sda6 /dev/sda6: Timing buffered disk reads: 64 MB in 12.33 seconds = 5.19 MB/sec [darryl@cascade darryl]$ sudo hdparm -t /dev/sda6 /dev/sda6: Timing buffered disk reads: 64 MB in 12.10 seconds = 5.29 MB/sec ^[[A[darryl@cascade darryl]$ sudo hdparm -t /dev/sda5 /dev/sda5: Timing buffered disk reads: 64 MB in 10.49 seconds = 6.10 MB/sec [darryl@cascade darryl]$ sudo hdparm -t /dev/hda1 /dev/hda1: Timing buffered disk reads: 64 MB in 3.28 seconds = 19.51 MB/sec [darryl@cascade darryl]$ sudo hdparm -t /dev/hda2 /dev/hda2: Timing buffered disk reads: 64 MB in 2.59 seconds = 24.71 MB/sec But FAST machine (Which is a slower CPU and older box and OS) [darryl@keg darryl]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/hda6 1.2G 735M 387M 66% / /dev/hda1 40M 3.0M 35M 8% /boot /dev/hdc1 6.2G 351M 5.6G 6% /home /dev/hdd1 12G 3.3G 8.0G 29% /opt /dev/hdc5 5.7G 2.2G 3.2G 40% /usr/local/backup [darryl@keg darryl]$ sudo hdparm -t /dev/hda6 /dev/hda6: Timing buffered disk reads: 64 MB in 24.51 seconds = 2.61 MB/sec [darryl@keg darryl]$ sudo hdparm -t /dev/hdc1 /dev/hdc1: Timing buffered disk reads: 64 MB in 21.58 seconds = 2.97 MB/sec [darryl@keg darryl]$ sudo hdparm -t /dev/hdd1 /dev/hdd1: Timing buffered disk reads: 64 MB in 21.45 seconds = 2.98 MB/sec