Koozali.org: home of the SME Server

MIni-itx - Network throughput

Offline JonB

  • *
  • 351
  • +0/-0
MIni-itx - Network throughput
« Reply #15 on: August 11, 2005, 03:35:05 AM »
I have used SME on Via Epias in Sereniti cases several times. I have in both cases replaced them with different motherboards and cases.

I found that the Power Supplies in the Sereniti cases were not up to the job when running 2 Hard Drives. While it still works the first thing that gets affected when the P/S starts sagging is the onboard Via Rhine network card. It either stops working or slows down.

Hanging a 350-400W ATX power supply outside the case improves things no end.

The same thing happens if you try to run 2 H/Ds off a mini ITX case with a 12V - ATX converter. These are 70W at the best and eventually fail if you try to drive to much power through them.

JonB
...

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
MIni-itx - Network throughput
« Reply #16 on: August 11, 2005, 10:50:53 PM »
Hmm, I have only one disk in a serenheti case. The on board via nic is very slow though. I thought that would be because of a driver problem. I posted a topic in the experienced forum about that.

I get no faster throughput than 70kB/s to the server itsselve by ftp. However to the internet I get speeds upto 200KB/s. Weird, I do not understand it at all.

[root@idsnew root]# hdparm -Tt /dev/hda

/dev/hda:
 Timing buffer-cache reads:   128 MB in  2.14 seconds = 59.81 MB/sec
 Timing buffered disk reads:  64 MB in 17.28 seconds =  3.70 MB/sec


What module do you use for the via nic?

greetings

Hans-Cees
nl.linkedin.com/in/hanscees/

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Mini ITX - HDPARM
« Reply #17 on: August 13, 2005, 03:12:15 PM »
About:
Quote

[root@idsnew root]# hdparm -Tt /dev/hda
/dev/hda:
Timing buffer-cache reads: 128 MB in 2.14 seconds =  59.81 MB/sec
Timing buffered disk reads: 64 MB in 17.28 seconds = 3.70 MB/sec


I think you should try: hdparm -d1 /dev/hda
and retest! You´ll be impressed.
If you like I could help you, just post the results of:
hdparm -i /dev/hda
hdparm    /dev/hda
...

laurie_lewis

MIni-itx - Network throughput
« Reply #18 on: August 13, 2005, 03:29:48 PM »
hanscees, try the settings that cc_skavenger gave earlier in the thread.  I got a lot better performance when I played with them.  I also found that when I paired up my Seagate and Western Digital drives I got better performance than when paired with a samsung drive.  Don't ask me why.  I am getting arount 55/56 mb/sec from the seagate and western digital using a ata 100 cable.

After reading the comments about power and the on board network adapter I did a bit of an experiment.  With the via Rhine adapter I was getting 6.9 to 7 mb/sec throughput.  when I swapped across the a micronix based network card I only got 6.4 to 6.5.

I am running my via motherboard off a 250W atx power supply and not having any problems.  It has three hard drives in it and is pulling a whopping 47 watts.  It does get up to 75 during boot but then settles down.  If I have a monitor attached and boot it jumps to 230 watts - obviously running the monitor off the same power supply.  You can now get 200w dc power supplies that fit the motherboards if you are frightened about being under powered.

Laurie

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
Re: Mini ITX - HDPARM
« Reply #19 on: August 14, 2005, 05:06:42 PM »
Quote from: "jader"
About:
Quote

[root@idsnew root]# hdparm -Tt /dev/hda
/dev/hda:
Timing buffer-cache reads: 128 MB in 2.14 seconds =  59.81 MB/sec
Timing buffered disk reads: 64 MB in 17.28 seconds = 3.70 MB/sec


I think you should try: hdparm -d1 /dev/hda
and retest! You´ll be impressed.
If you like I could help you, just post the results of:
hdparm -i /dev/hda
hdparm    /dev/hda


I have no luck here:


/dev/hda:
 Timing buffer-cache reads:   128 MB in  2.24 seconds = 57.14 MB/sec
 Timing buffered disk reads:  64 MB in 16.36 seconds =  3.91 MB/sec
[root@idsnew root]#  hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 using_dma    =  1 (on)
[root@idsnew root]# hdparm -Tt /dev/hda

/dev/hda:
 Timing buffer-cache reads:   128 MB in  2.10 seconds = 60.95 MB/sec
 Timing buffered disk reads:  64 MB in 16.61 seconds =  3.85 MB/sec
[root@idsnew root]#

So please help:-)
[root@idsnew root]# hdparm -i /dev/hda

/dev/hda:

 Model=WDC WD400LB-00DNA0, FwRev=77.07W77, SerialNo=WD-WMAH81135080
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
 CurCHS=65535/1/63, CurSects=4128705, LBA=yes, LBAsects=78165360
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes: pio0 pio1 pio2 pio3 pio4
 DMA modes: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=no WriteCache=enabled
 Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5 ATA-6

[root@idsnew root]# 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     = 4865/255/63, sectors = 78165360, start = 0
 busstate     =  1 (on)
nl.linkedin.com/in/hanscees/

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
MIni-itx - Network throughput
« Reply #20 on: August 14, 2005, 09:29:40 PM »
hum... this is VERY strange:
Quote

 DMA modes: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5

Note the "*" on UDMA 5 ... so your HDD is capable of that! And with UDMA 5 you should get at least 20MB/sec

Are you sure you´re using a 80way HDD data cable on your Western Digital 40GB HDD?
This is the only device on cable?
One BIOS:
Are the UltraDMA (or something like that) enabled?
It´s IDE Prefetch mode enabled?
...

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
MIni-itx - Network throughput
« Reply #21 on: August 15, 2005, 09:51:12 PM »
Quote from: "jader"
hum... this is VERY strange:
Quote

 DMA modes: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5

Note the "*" on UDMA 5 ... so your HDD is capable of that! And with UDMA 5 you should get at least 20MB/sec

Are you sure you´re using a 80way HDD data cable on your Western Digital 40GB HDD?
This is the only device on cable?
One BIOS:
Are the UltraDMA (or something like that) enabled?
It´s IDE Prefetch mode enabled?


I am afraid I checked everything. I am using another ide cable now, the stiff kind for ata 133.

I changed the disk to be on the end of the ide cable: it was halfway: no difference though.


I checked the bios, and dma is on and prefetching also (or rather write-behind caching).

So I am out of options here.

Is it possible that a more heavy power supply might help? I can try that for a test. Will a normal psu fit on the mini-itx? Or is that not likely?

greetings

Hans-Cees
nl.linkedin.com/in/hanscees/

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
HDD SLOW
« Reply #22 on: August 15, 2005, 11:55:37 PM »
Hi

I´m running out of options here too! :)
Let´s start from basic: (it´s boring... but just in case)!

1) It´s the blue side of connector on motherboard?
2) have you double checked the DMA is ON in BIOS and on linux?
3) there is no other device on this cable?

I don´t think the PSU has something to do with your problem. I have a MiniITX 933 mhz running on a 677R case with a 55W MAX PSU!!!

I just saw problems when all these were ok in a VERY OLD K6 motherboard... it need a BIOS upgrade.

Good luck!

Jáder
...

Offline arne

  • *****
  • 1,116
  • +0/-4
MIni-itx - Network throughput
« Reply #23 on: August 16, 2005, 03:53:14 AM »
I have to admit that I have never tried a ITX motherboard (but I would like to do it one day), and I have not set up a sme server as a gateway for years. On the other hand I use the sme server as a server and I have sat up some Linux gateway using other distributions than the SME.

In general - I think there is two completely different ways of doing the firewall and gateway function when it comes to speed and prosessor load.

If you do it the "kernel firewalling way" the load on the hardware will be very little. There will be generally no load or trafic to the harddisk at all. As a general prinsipple "all" functions will be done via internal datatransport in the Linux kernel and via datas that is stored in the ram. Using this prinsipple it will not mather what harddisk you are using because the harddisks will not take part of the trafic load.

Then it is the other way of doing "partly the same job", the "web caching way" via squid. If you choose this solution the load on the hardware will increase, I think, quite dramatically. You will be dependent on relatively high prosessor speed and fast harddisks.

Even though I have not tested any ITX motherboards I think it should have quite enough rerources to to the job "the kernel firewalling way". On the other way, I would not expect the IPX boards to be strong enough to carry the load from a web cache with some trafic (??!!) I would expect any harware with "not so high performance" would slow down the trafic if used as a web cache.

If you set up a gateway "manually" using Centos or something like that it is easy to know how it works because it is just manual configurations. I don't know how the sme server handles this by default, if you for instanse can turn "on or off" or "connect in or connect out" a web caching function (Squid) you can also choose the amount of prosessor/hardware load and the effective speed.

I can see that there is mentioned the use of some content filtering functions in the question that can only be done using a web proxy. I would not expect the ITX board to be strong enough to handle that.

On the other hand if it were used as a netfilter gateway (linux kernel) with some server functions like those contained in the sme server and no "active use of" the web proxy function (Squid), I would expect that a PC with at performance of an ITX could do the job quite well.

I have tried different "low performance" PC's as gateway. I think that even a Pentium 166 can do the kernel firewlling thing, but to make a speedy web cache that realy does the job, you will need some hardware power.

Dont know if you can use anything of this, just some ideas ..

Best reg Arne
......

Offline arne

  • *****
  • 1,116
  • +0/-4
MIni-itx - Network throughput
« Reply #24 on: August 16, 2005, 04:00:22 AM »
.. Or to say it in some words less ..

If the web proxy function (and then also the content filtering) could be turned off so the trafic will pass troug the sme gateway as a ordinary nat router, the load should go down and the speed should increase.

Arne
......

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
MIni-itx - Network throughput
« Reply #25 on: August 16, 2005, 09:57:53 AM »
Quote from: "arne"
.. Or to say it in some words less ..

If the web proxy function (and then also the content filtering) could be turned off so the trafic will pass troug the sme gateway as a ordinary nat router, the load should go down and the speed should increase.

Arne


I do not use squid. I do not have problems with internet speed.

I have two problems:
- internal via nic-interface is slow and drops packets
when copying to disk large files.
- internal hd is slow.

I have doublechecked dma settings in bios and os. Cable is ok and with blue ribbon in the motherboard.

I will try to do some more tests:
- ftp to machine with "put file /dev/null" to see if nic itsself is a problem.
- do some dd tests on the harddisk.
- check irq's in dmesg.

If nothing is found I will try another harddisk and another psu.

I will be back:-(

Hans-Cees
nl.linkedin.com/in/hanscees/

laurie_lewis

MIni-itx - Network throughput
« Reply #26 on: August 16, 2005, 11:22:32 AM »
Hans-Cees,

I am using Dans Guardian on my server with the Clam AV supposedly scanning everything that is moving around.

The figures I quoted about transfers are whilst dansguardian is running.

the hdparm figures should not change not matter what you are running and I would suggest they may be a key issue in your network performance.  As I said earlier why not try and drop another hard drive in and just see how it performs.  This will not require a new install.  Just put it on the other channel and do the tests for /dev/hdc.  I looked at system monitor on mine to check the cpu usage during the network usage just to make sure the cpu is not running at 100% to see if that was a problem.

You have not indicated in any of the previous posts (from memory) what itx motherboard/processor you are using.  That might help others?

Laurie

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
MIni-itx - Network throughput
« Reply #27 on: August 21, 2005, 12:31:45 AM »
Hi, it took a while to do all kinds of tests.

First of all, I have a via epi-v mainboard
http://www.viavpsd.com/product/Download.jsp?motherboardId=141

The problems I have are:
harddisk is very slow in hdparm -Tt
via-rhine nic is also very slow

I did some more testing and this is the result:

The via-rhine nic is only slow from the local network to the server (upto 30kB/s). From the server (and thus internet) to the local network it runs 6MB/s. Still slow for a 100mbit full duplex card.

This problem "tastes" very much like a halfduplex/full duplex problem I have seen many times on networks. But all settings here are fine. I did quite some testing and am convinced the via-rhine network driver is faulty with my nic.
I installed a sme 7alpha26 and there the same problem was present.

The harddisk speed remains a mystery. In hdparm -Tt is is very slow.
I installed another harddisk with sme7 alpha26 (kernel 2.6) and it was identical. I got readings like:
:
Timing buffer-cache reads: 128 MB in 2.14 seconds = 90.xx MB/sec
Timing buffered disk reads: 64 MB in 17.28 seconds = 3.70 MB/sec

So the timing buffered disk reads were still extremely slow.

I think I should consider buying another motherboard?

Hans-Cees
nl.linkedin.com/in/hanscees/

laurie_lewis

MIni-itx - Network throughput
« Reply #28 on: August 22, 2005, 07:46:58 AM »
Hi Hans-Cees,

Out of curiosity I put an old hard drive (ibm 4 gig) onto a mini-itx V series motherboard to see how it  performed.

I got 7.3 MB/Sec - system running SME 7 beta 1.  Not startling but still better than yours.

My other stats I was giving was off a Epia-M series board.

How are you finding 7 beta - about to change my server over to it tongight.

Laurie

Offline hanscees

  • *
  • 267
  • +0/-0
    • nl.linkedin.com/in/hanscees/
MIni-itx - Network throughput
« Reply #29 on: August 27, 2005, 12:16:55 AM »
Quote from: "laurie_lewis"
Hi Hans-Cees,

Out of curiosity I put an old hard drive (ibm 4 gig) onto a mini-itx V series motherboard to see how it  performed.

I got 7.3 MB/Sec - system running SME 7 beta 1.  Not startling but still better than yours.

My other stats I was giving was off a Epia-M series board.

How are you finding 7 beta - about to change my server over to it tongight.

Laurie


Hi Laurie,

I am thinking of upgrading to beta seven, but will probably wait a little bit longer. Although I am downing beta 7/2 now.

As for the hardware, I can let the board go into repair, but apparantly that will take six weeks.

I hope to get some more information of people here about if they have no problem with the via nics, also not when they look close (is it performing well two-ways). I am a bit afraid of buying a new board only to find the same problems.

Hans-Cees
nl.linkedin.com/in/hanscees/