public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Production comparison between 2.4.27 and 2.6.8.1
@ 2004-08-21 17:25 Massimo Cetra
  2004-08-22  1:33 ` Nick Piggin
  0 siblings, 1 reply; 9+ messages in thread
From: Massimo Cetra @ 2004-08-21 17:25 UTC (permalink / raw)
  To: linux-kernel


Hi everybody.

#***********************************************************

Environment:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 10
model name      : AMD Athlon(tm) XP 3000+
stepping        : 0
cpu MHz         : 2091.477

#***********************************************************
             total       used       free     shared    buffers
cached
Mem:       1030844     258500     772344          0      36924
167092
-/+ buffers/cache:      54484     976360
Swap:      2056304          0    2056304

#***********************************************************
# lspci
0000:00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different
version?) (rev c1)
0000:00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1
(rev c1)
0000:00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4
(rev c1)
0000:00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3
(rev c1)
0000:00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2
(rev c1)
0000:00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5
(rev c1)
0000:00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a4)
0000:00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2)
0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller
(rev a4)
0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller
(rev a4)
0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller
(rev a4)
0000:00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet
Controller (rev a1)
0000:00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge
(rev a3)
0000:00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2)
0000:00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
0000:01:04.0 Ethernet controller: Marvell Technology Group Ltd. Yukon
Gigabit Ethernet 10/100/1000Base-T Adapter (rev 13)
0000:01:0b.0 RAID bus controller: Silicon Image, Inc. (formerly CMD
Technology Inc) SiI 3112 [SATALink/SATARaid] Serial ATA Controller (rev
02)
0000:03:00.0 VGA compatible controller: nVidia Corporation NV11
[GeForce2 MX/MX 400] (rev b2)

#***********************************************************

Distro is Debian Woody with all necessary packages backported in order
to have 2.6 working.

I used postgres 7.4.3 to make some tests on a server which will go in
producton in a short time.

The test was really simple:

dropdb mydb
createdb mydb
time psql -U blus mydb <schema.sql
time psql -U blus mydb <data.sql

#***********************************************************

I tried both 2.6.8.1 vanilla and 2.4.7 with -lck patches applied and run
the same test changing kernels.

Tests were run:
- on a raid1 partition on 2 serial Ata disks	(ext3) [software raid)
- on a non raid partition on /dev/sda0 (xfs)

(only postgres data has been switched from raid-ext3 to xfs)


My purpose was merely have a difference of time between the 2 kernels in
performing that task.

Case 1a is 2.4.27-lck1 with raid1 ext3
Case 1b is 2.4.27-lck1 without raid on xfs
Case 2a is 2.6.8.1 with raid1 ext3
Case 2b is 2.6.8.1 without raid on xfs
Results were:

A) for creating the schema (which involves creating tables and indexes)
1a:
  real    0m1.312s
  user    0m0.030s
  sys     0m0.008s
1b:
  real    0m0.508s
  user    0m0.024s
  sys     0m0.012s
2a:
  real    0m0.941s
  user    0m0.025s
  sys     0m0.010s
2b:
  real    0m0.560s
  user    0m0.024s
  sys     0m0.005s

B) to import the data (which implies both writing data to disk and
recalculating indexes)
1a:
  real    4m12.757s
  user    0m3.376s
  sys     0m1.700s
1b:
  real    1m0.467s
  user    0m3.290s
  sys     0m1.646s
2a:
  real    2m42.861s
  user    0m3.590s
  sys     0m1.523s
2b:
  real    1m30.746s
  user    0m3.255s
  sys     0m1.501s

#**********************************************
HDPARM shows:
# hdparm -v
hdparm - get/set hard disk parameters - version v5.5

2.4.7:
/dev/sda:
 Timing buffer-cache reads:   2188 MB in  2.00 seconds = 1094.00 MB/sec
 Timing buffered disk reads:  164 MB in  3.02 seconds =  54.34 MB/sec

2.6.8.1:
/dev/sda:
 Timing buffer-cache reads:   2176 MB in  2.00 seconds = 1087.08 MB/sec
 Timing buffered disk reads:  136 MB in  3.04 seconds =  44.77 MB/sec

#**********************************************
It is my first experience with 2.6 branch kernels, because i am trying
to figure out if the tree is performing well to switch everithing in
production, so my ideas may be wrong...

Raid tests may be faked because of the overhead caused by md sync (and
probably raid is better on 2.6). 
However it seems that libsata has better performance on 2.4 (hdparm)
xfs tests shows that 2.4 has better performance if compared to 2.6 and
the difference, in my opinion, is not linked on libsata better
performance.

What is your opinion ?
What can I try to improve performance ?


Regards,

Ing. Massimo Cetra
------------------------------------
Navynet S.r.l
Surfing the network
Via di peretola, 93 - 50145 Firenze 
Tel. 055317634 


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Production comparison between 2.4.27 and 2.6.8.1
@ 2004-08-25  7:23 rwhron
  0 siblings, 0 replies; 9+ messages in thread
From: rwhron @ 2004-08-25  7:23 UTC (permalink / raw)
  To: mcetra; +Cc: linux-kernel

> What can I try to improve performance ?

In benchmarks I've done, XFS was helped significantly
by the mkfs/mount options in the XFS FAQ.  (look
for the dbench question).

http://oss.sgi.com/projects/xfs/faq.html

mkfs -t xfs -l size=32768b -f /dev/device
mount -t xfs -o logbufs=8,logbsize=32768 /dev/device /mountpoint

-- 
Randy Hron
http://home.earthlink.net/~rwhron/kernel/bigbox.html


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-08-25  7:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-21 17:25 Production comparison between 2.4.27 and 2.6.8.1 Massimo Cetra
2004-08-22  1:33 ` Nick Piggin
2004-08-22 15:43   ` Massimo Cetra
2004-08-22 16:54   ` Massimo Cetra
2004-08-23 11:46   ` Massimo Cetra
2004-08-24  2:05     ` Nick Piggin
2004-08-24 14:15       ` Massimo Cetra
2004-08-25  2:28         ` Nick Piggin
  -- strict thread matches above, loose matches on Subject: below --
2004-08-25  7:23 rwhron

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