Forums

Chris
Chris
Offline
Resolved
0 votes
I've just installed ClearOS Community edition, first time user coming from pfsense, however, I'm having all sorts of trouble with my internet speeds now that I'm using ClearOS as a router. Previously, with pfsense, I'd be downloading around 200mbps and uploading at 10mbps without problem. With ClearOS acting as a router, the speeds are all over the place and inconsistent. It is even more of a problem to stream HD content.

I stream to twitch.tv, with pfsense I had my stream steadily going at a bitrate of 4500kbps and no lag, but with ClearOS it can't keep up and I'm getting a lot of dropped encoded frames due to inconsistent speeds. Likewise, I can't even set it past 4000kbps with some level of consistency as the upload speeds are too inconsistent, even at 4000kbps it is inconsistent, resulting in poor quality stream.

Regarding download, the servers I used to do speedtest.net against previously would give me download speeds between 195 to 225mbps, however now they reach 20-40mbps and 1/4 of the time cut out half way through.

Here is a test of upload and average upstream rates when I set my stream data rate to 4500 kbps, there is too much jitter inbetween - this wasn't a problem with pfsense:

Average data rate during 1065 ms: 4487 kbps...
Average data rate during 2051 ms: 4533 kbps...
Average data rate during 2017 ms: 4534 kbps...
Average data rate during 2066 ms: 4620 kbps...
Average data rate during 2067 ms: 4391 kbps...
Average data rate during 2035 ms: 4601 kbps...
Average data rate during 2063 ms: 4474 kbps...
Average data rate during 2033 ms: 4611 kbps...
Average data rate during 2071 ms: 4541 kbps...
Average data rate during 2046 ms: 4525 kbps...
Average data rate during 2084 ms: 4531 kbps...
Average data rate during 2025 ms: 4506 kbps...
Average data rate during 2084 ms: 4479 kbps...
Average data rate during 2058 ms: 4498 kbps...
Average data rate during 2031 ms: 4604 kbps...


Setup is as follows, one Intel Gb CT as WAN adapter and one Intel Gb CT as LAN.


[root@system bin]# lspci -k | grep Eth -A 4
00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2)
Subsystem: Elitegroup Computer Systems Device 2609
Kernel driver in use: forcedeth
Kernel modules: forcedeth
00:08.0 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2)
--
02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
Subsystem: Intel Corporation Gigabit CT Desktop Adapter
Kernel driver in use: e1000e
Kernel modules: e1000e
04:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
Subsystem: Intel Corporation Gigabit CT Desktop Adapter
Kernel driver in use: e1000e
Kernel modules: e1000e



2.6.32-358.2.1.v6.x86_64



[root@system bin]# cat /etc/clearos/network.conf
# Network mode
MODE="gateway"

# Network interface roles
EXTIF="eth2"
LANIF="eth1"
DMZIF=""
HOTIF=""

# Domain and Internet Hostname
DEFAULT_DOMAIN="mydomain.com"
INTERNET_HOSTNAME="system.router"

# Extra LANS
EXTRALANS=""


Read/write speeds decent:

/dev/sda:
Timing cached reads: 1730 MB in 2.00 seconds = 865.18 MB/sec
Timing buffered disk reads: 228 MB in 3.01 seconds = 75.83 MB/sec



As you can see, no resource hogs, nothing eating up the CPU or memory:

top - 00:31:22 up 1:28, 2 users, load average: 0.04, 0.02, 0.05
Tasks: 127 total, 1 running, 126 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.7%us, 1.0%sy, 0.0%ni, 98.2%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 2824288k total, 1417048k used, 1407240k free, 53972k buffers
Swap: 2965496k total, 0k used, 2965496k free, 553976k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15782 snort 20 0 145m 58m 4148 S 1.3 2.1 0:21.01 snort
1728 root 20 0 135m 5800 1860 S 0.3 0.2 0:03.51 syswatch
1956 clearcon 20 0 337m 3192 1768 S 0.3 0.1 0:03.69 tconsole
1999 clearcon 20 0 668m 148m 26m S 0.3 5.4 0:42.23 gconsole
1 root 20 0 19228 1484 1188 S 0.0 0.1 0:01.15 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.15 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.01 watchdog/0
7 root RT 0 0 0 0 S 0.0 0.0 0:00.21 migration/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/1
9 root 20 0 0 0 0 S 0.0 0.0 0:00.10 ksoftirqd/1
10 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/1


Ethtool:

[root@system bin]# ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
[root@system bin]# ethtool eth2
Settings for eth2:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes


Does anyone have any suggestions on how I can improve ClearOS to perform decently? I'd like to keep using it buf not if it's going to cause me these sorts of problems.


Thanks.
Sunday, May 26 2013, 04:42 AM
Share this post:
Responses (2)
  • Accepted Answer

    Sunday, May 26 2013, 08:44 AM - #Permalink
    Resolved
    0 votes
    I've just compiled v2.3.2against your kernel if you want. Alternatively you could try Tim's slightly older kernel independent version here.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, May 26 2013, 07:48 AM - #Permalink
    Resolved
    0 votes
    The 82457L is known to have problems. Look here for a bit more info and a link to a health warning. There is a link there to later drivers but I don't know if they'll need recompiling to the most up to date kernel. I have not yet rebooted my box so I am not running the latest one. There are some even later ones on Intel's site. You could try installing them.
    The reply is currently minimized Show
Your Reply