Summary of fixes to try for speeding up the SunGem Ethernet
  • MorphOS Developer
    Nadir
    Posts: 162 from 2003/3/17
    Yes, the new stack supports window scaling and it definitely improves the speed / stability of the connection (in some cases dramatically so).

    There might still be scope for improvements to the sungem device, but that's not my field ;-)
  • »03.01.13 - 17:47
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > Yes, the new stack supports window scaling and it definitely improves
    > the speed / stability of the connection (in some cases dramatically so).

    Fantastic news. Thanks :-)
  • »03.01.13 - 17:52
    Profile
  • MorphOS Developer
    Nadir
    Posts: 162 from 2003/3/17
    You mean datagram fragmentation? Even the old stack should do that. One issue that is still outstanding relates to SACK (selective acknowldgement of received packets). This is a TCP level feature which is very useful when packets arrive in the wrong order.

    I'm not sure if this will be included in the 3.2 release. I currently work on two different FreeBSD trees: 2.2 (with some patches from latest repository) and 4.11 (+patches). It might be that only the former will be ready for the next MorphOS release and it does not have the SACK feature.

    There are big changes in the 4.x tree and it will take some more time to make sure everything works so 4.x (or an even later release) might have to wait unfortunately. Good news is that compared to the old stack, you will see a large improvement anyhow. Even a FreeBSD 2.2 based stack is newer than anything else on our systems.

    /Nicholai
  • »04.01.13 - 09:19
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    Experiencing same TCP problems as everyone else using OWB on a Powerbook.
    Seems like a LOT of packet loss.
    Causing web pages to take a long time to finish.
    Downloads are all over the board, usually dropping to 20kbs from 200kbs for no reason.
    :-(
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »04.01.13 - 09:46
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    osco
    Posts: 680 from 2009/10/21
    From: Boston, USA
    Since the upgrade to 3.1, all issues with OWB 1.18 have vanished! The net is fast and friendy! Ty FAB :-D
    Mac Mini 1.5GHz, 1G, 250G Drive, Apple Cinema Display, MorphOS 3.1 registered, MacOS 10 PowerBook (5,8) 1.67Hz, 2G, 80G Drive,........Waiting
    PowerBook (5,8) 1.67Hz, 2G, 40G MorphOS 3.1 unregisterd
  • »04.01.13 - 10:31
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    redrumloa
    Posts: 1424 from 2003/4/13
    Nadir,
    Quote:

    Good news is that compared to the old stack, you will see a large improvement anyhow. Even a FreeBSD 2.2 based stack is newer than anything else on our systems.


    I bow to you, Sir! :-o :-o
  • »04.01.13 - 12:49
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    Quote:

    Experiencing same TCP problems as everyone else using OWB on a Powerbook.
    Seems like a LOT of packet loss.


    There seem to be a few different types of network 'problem' so it's probably more useful to describe your issues rather than pointing at some nebulous thead and saying 'me too'.

    - Not everyone experiences problems
    - Many people are describing problems on the Mac-Mini rather than the Powerbook.
    - Problems are not just related to using OWB, but any type of network transfer (FTP, HTTP, SMB)

    Anyhow, Network Statistics window tells you how many packets have been dropped. (Enable Netlamps screenbar module and double-click on it)
    Severe packet loss due to the stack (rather than crappy cabling/router) would be a new issue afaik.

    EDIT:

    Quote:

    Downloads are all over the board


    Try testing with a fixed download size of 12Mb download size at testmy.net. I've found it a more reliable way of measuring Cx speed than just downloading random files and guestimating. Also, if you create a profile you can moitor your network speeds over time.

    [ Edited by boot_wb 04.01.2013 - 14:16 ]
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »04.01.13 - 13:12
    Profile Visit Website
  • MorphOS Developer
    Nadir
    Posts: 162 from 2003/3/17
    These kind of swings in download speed is probably due to the fixed window size in the old stack. I also used to have this kind of behaviour.
  • »04.01.13 - 13:23
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > the TCP window scaling feature [...] is not implemented in [...] OS4

    According to olsen, Roadshow for OS3 has this feature:

    http://www.amiga.org/forums/showpost.php?p=721301

    I don't know if that's also true for the version OS4 comes with, though.
  • »06.01.13 - 00:24
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    OWB crashing all the time.
    Fresh 3.1 install and nothing but latest OWB.
    Pages will suddenly halt and die and someitmes OWB says 'application meditating'.
    Downloads dropping like crazy.
    Took this laptop to work and downloads worked fine but OWB still crashing on loading web pages.
    Takes just a few minutes to start crashing,
    tigerdirect.com - select SSD catagory, page wil always crash after loading half the page.


    System:
    Best Powerbook Apple ever made.
    Nuf said.

    :-D
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »06.01.13 - 08:43
    Profile Visit Website
  • Butterfly
    Butterfly
    danwood
    Posts: 95 from 2009/10/5
    To be honest, I've always found the issue of the sungem stalls and varying speed pretty swept under the carpet, either denial it exists any more or "well we can't replicate it" and then being walked through the usual (blame the router, blame your ethernet cable, dns settings etc.). In the end after having everything from my router, ethernet switch, wiring etc. blamed (all of which work fine on other devices in the same room), I got a Belkin USB to Ethernet adapter, works great with that so I disabled the internal etherner on my mac mini.

    Agree, it would be nice to finally admit this is an issue and to try and solve it at last, as it would free up my second usb port again.

    [ Edited by danwood 06.01.2013 - 21:31 ]
  • »06.01.13 - 20:02
    Profile
  • Butterfly
    Butterfly
    danwood
    Posts: 95 from 2009/10/5
    hooligan,
    Quote:

    A bit off topic topic maybe, but the issue with stalled loading in OWB still exists (OWB loads for example 95% of a page and waits from few seconds to several minutes before continuing). Happens on any site (even very simple ones) any time so its a bit hard to pinpoint the actual cause of problem.



    I think this is the Sungem issue, it happens with me too using internal ethernet. On a USB to LAN adapter it does not, it loads smoothly every time, although ocassionally I get the system locking up on me randomly :/
  • »06.01.13 - 20:24
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    catohagen
    Posts: 297 from 2003/5/20
    @amigadave

    Did you try the new Roadshow 68k stack ?

    with the current netstack in morphos OWB crawled and file transfers
    went from between 500KB <-> 6-7MB in jumps up and down

    this new(old) tcp/ip stack, even as emulated 68k code have boosted the 2 morphos machines I have to be the fastest in my lan (but in ramdisk)

    I think i sat an hour, just copying files back and fourth....seing 35-36MB/s filetransfers on a Morphos machine.

    Ofcource reality hits when you want to do real work, as samba i have is slow and 68k, and harddisk speed and ide.device takes its cpu, so in the end, writing to a SFS SSD the Powerbook ends up on flat 6-7-8MB/s and no jumps/jitter in the process, but cpu load was pretty high.

    A ppc port of samba would help..
  • »15.01.13 - 07:46
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    Quote:

    A ppc port of samba would help..


    Check Aminet (there's also an update as well as the main archive),

    Although I prefer using Apache and wget myself, since I dound that the samba daemon throttles the cpu on my mac-mini after a while.

    [ Edited by boot_wb 15.01.2013 - 10:31 ]
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »15.01.13 - 09:28
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    catohagen
    Posts: 297 from 2003/5/20
    accessing your files with wget would give less cpuload but accessing your files from remote or linux/win/phone locally you cant with wget.

    Watching movies with Mplayer streaming from my smbfs mounted nas or win7 directly from Ambient is quicker that to wget your movie first to harddisk.

    But smbd works better than smbfs in terms of transferate, i.e
    copying a file from MorphOS: as a smb share, but you copy from win7 gives
    pretty good transferate(14-15MB/s), but if you smbfs mount your same win7 harddisk and copy the same file from MorphOS: from Ambient windows gives me 1-2MB/s :(

    It might be totally wrong, but Roadshow 68K speeds seems to increase over time, as if Trance JIT works faster over time.....after a reboot, transferates are lower than if its been running a while...?
  • »15.01.13 - 11:42
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > as if Trance JIT works faster over time

    Trance JIT doesn't work faster over time. It's just that it kicks in only after a code segment has been executed by the slower interpretative emulation a certain number of times. This is done that way as for code segments which are only run once (in a while), the interpretative emulation is actually faster than Trance JIT due to the compile overhead of the latter.
    It may be that this is what you're experiencing regarding Roadshow speed.
  • »16.01.13 - 23:37
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > One issue that is still outstanding relates to SACK (selective acknowldgement
    > of received packets). This is a TCP level feature which is very useful when
    > packets arrive in the wrong order. I'm not sure if this will be included in the 3.2
    > release. I currently work on two different FreeBSD trees: 2.2 (with some patches
    > from latest repository) and 4.11 (+patches). It might be that only the former will be
    > ready for the next MorphOS release and it does not have the SACK feature. There
    > are big changes in the 4.x tree and it will take some more time to make sure
    > everything works so 4.x (or an even later release) might have to wait unfortunately.

    The MorphOS 3.2 release notes reveal that dynamic window scaling and Berkeley packet filter support have been implemented, which is really nice. Would you please tell if you went for the BSD 2.2 or the BSD 4.11 version?
  • »28.05.13 - 13:42
    Profile
  • Moderator
    hooligan
    Posts: 1948 from 2003/2/23
    From: Lahti, Finland
    Thought I would share.. problems with low download speeds on my Mac are gone, I get 3.6-3.7MB/s instead of crawling I used to get. Ok so its nothing to be proud of as it should be over twice better but still a heck of an improvement.
    www.mikseri.net/hooligan <- Free music
  • »29.05.13 - 04:24
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    catohagen
    Posts: 297 from 2003/5/20
    Quote:

    hooligan wrote:
    Thought I would share.. problems with low download speeds on my Mac are gone, I get 3.6-3.7MB/s instead of crawling I used to get. Ok so its nothing to be proud of as it should be over twice better but still a heck of an improvement.


    If its possible to tweak internal tcp/ip stack settings in new Netstack as we can in Roadshow 68k, you could probably get most of your missing half, but we need documentation if its possible with env-vars or adding values to configfile from Morphos devs...
  • »07.06.13 - 11:38
    Profile
  • MorphOS Developer
    Nadir
    Posts: 162 from 2003/3/17
    Quote:

    Andreas_Wolf wrote:

    The MorphOS 3.2 release notes reveal that dynamic window scaling and Berkeley packet filter support have been implemented, which is really nice. Would you please tell if you went for the BSD 2.2 or the BSD 4.11 version?


    It is based on FreeBSD 2.2 but with a few additions from FreeBSD8/9.

    Btw, one feature that didn't make it into the release version is SACK support which I finalised only one day before the internal feature freeze and we decided to test it more before including it in a user release. It has a very positive impact on networks with a lot of packet drops / delay so that packets acks arrive out of order (which seems to be the case in my home nw for whatever reason...). On some networks it doesn't help at all basically because there is no problem in the first place

    I am still making progress on the newer codebase, so let's see what happens with that as well
  • »07.06.13 - 11:40
    Profile
  • MorphOS Developer
    Nadir
    Posts: 162 from 2003/3/17
    Quote:

    catohagen wrote:
    Quote:

    hooligan wrote:
    If its possible to tweak internal tcp/ip stack settings in new Netstack as we can in Roadshow 68k, you could probably get most of your missing half, but we need documentation if its possible with env-vars or adding values to configfile from Morphos devs...


    It is possible to control these kind of settings through the ARexx interface or through env:sys/net/NetStack.config. Unfortunately I don't think we included the documentation in the release (should do that next time) but you can download the AmiTCP4 demo from aminet and check AmiTCP.guide. The interface is the same in NetStack. Future releases will however support a larger set of variables that can be controlled.
  • »07.06.13 - 14:58
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > It is possible to control these kind of settings through the ARexx interface or through
    > env:sys/net/NetStack.config. [...] Future releases will however support a larger set of
    > variables that can be controlled.

    Now that NetStack settings can be controlled via Network prefs GUI in MorphOS 3.4, is NetStack.config still used or can this file be deleted?
  • »15.12.13 - 14:33
    Profile