Overclocking tomato's

Discussion in 'Tomato Firmware' started by LAGMonkey, Sep 20, 2006.

  1. LAGMonkey

    LAGMonkey Network Guru Member

    As the title really, ive been playing with tomato for about a week now and frankly its the Bees Knees.

    However like all beta firmwares (and come to think about final ones too!) its got problems.

    Overclocking using the "nvram set clkfreq=XXX,XXX" dosent work after a reboot. The router returns to the original value of 215.

    Is this value hard coded and unchangeable in tomato unless i compile a new version? Im not good with linux so im a bit useless in that regards.

    Also is there any way of updating the L7 or IPP2P tables as sometimes they seem to fall over themselves and not work (MSN video, audio), BT (when more than one client is using it). CounterStrike Sourse (when using L7).

    EDIT:: Tomato v0.4 WRT54G v2.2
  2. bigl2

    bigl2 Network Guru Member

    After setting nvram values do "nvram commit" and they should be preserved after reboot.

    When it comes to L7 and IPP2P the only way to update them is by installing new version of FW. Or you can change them in source and compile your own FW. But if you're unfamiliar with Linux compilation could be a problem for you.
  3. LAGMonkey

    LAGMonkey Network Guru Member

    Aye, i was fearing that the L7 implimention would involve a compilation.

    And to the overclocking. After the nvram commit code you can retrieve the new value of clkfreq using

    nvram get clkfreq

    however after a reset the value defaults back to 216.
  4. redcow

    redcow LI Guru Member

    you can add L7 rules as written in the readme:

    just create the directory with:

    mkdir -p /etc/l7-extra
    and copy there your new l7 rules.
  5. lwf-

    lwf- Network Guru Member

    The default value is 200 mhz but you should be able to clock the cpu to 216 mhz.
  6. LAGMonkey

    LAGMonkey Network Guru Member

    Currently the Clock is 216, anything higher and the command will not stick.

    And Redcow. if i just copy the new definitions into that new directory will tomato automatically use them?
    If thats the case then Tofu has outdone himself!!!
  7. redcow

    redcow LI Guru Member

    no you have to choose the new l7 rule in the Listbox like you did with the default rules, because how should tomato know which rule you want to use ? :wink:
  8. bigl2

    bigl2 Network Guru Member

    Readme says only about adding new L& filters. But what will happen if you add to this dir new version of existing L7 filter? Which one will be used in existing rules?
  9. redcow

    redcow LI Guru Member

    the first one is probably the default and the second on your new one, because i think first it lists the default directory and after the extra one, but only my opinion dunno. But shouldn't be a problem, why not give your new rule a name like xy_new or xy2 ? :wink:
  10. LAGMonkey

    LAGMonkey Network Guru Member

    But back onto the Overclocking problem,

    Are there any confirmed cases of people being able to overclock their routers using Tomato?
    im using version 0.5 and i cant get the values to stick using the
    "nvram set clkfreq=240
    nvram commit

    command set.

    Its getting a little annoying at the moment
  11. LAGMonkey

    LAGMonkey Network Guru Member

    update... setting nvram clkfreq to equal 225 bricked the router!

    maybe this is somthing to do with the CFE table used in tomato?

    EDIT:: Is there any way of accessing the CFE file to take a look at it? im curious about it as i read that it controls the ammount of overclock thats avaliable, and if your outside the range that it allows then it wont perform the overclock (Hence no 240Mhz for me and brick at 225)

    DD-WRT will allow full "safe" overclocking of my router but its got WAY too many fetures for me and i do like tomato (just what i need).
  12. dbcch

    dbcch LI Guru Member

    tomato and other firmwares do not modify the CFE. I suppose it is possible Tomato's startup scripts are undoing your modification, though then they'd have to reboot the router in order to reset the clock frequency. You can check your actual clock freq cia cat /proc/cpuinfo. If tomato's startup scripts are simply resetting clkfreq to 216, then probably your changes persisted at least one reboot and you'll find your clock frequency in effect.

    If you really want to know what the frequency tables are in the CFE, though like I said none of these firmwares modify the boot loader, I've done some work on this long ago, including changing the table to add clock frequencies of your own (of course, they must be valid frequencies):

  13. robsonn

    robsonn Network Guru Member

    Can you tell me one good and serious reason why you need to overclock router with Tomato on it? This firmware is very light and fast (faster then others) on standard settings. So i'm wondering why people have to do it? I hope that only reason isn't "if you can overclock something, then why i shouldn't do it ...".
    If you can't overclock Tomato and you need more Mhz just flash your earlier firmware.
    Btw. On WRT you can't set cpu frequency like you want. Several of them will cause synchronisation break with ram and will cause damage/brick to your router.
  14. pharma

    pharma Network Guru Member

    I agree! Once there was a reason for overclocking, but that bug was fixed awhile ago by Linksys and is included in these 3rd party firmwares. There really is no reason to overclocking anymore.

  15. LAGMonkey

    LAGMonkey Network Guru Member

    The reason i overclock is that the ammount of connects being throw at the router always casuses slow down at 216Mhz. 9 clients using HEAVY BT on a 10 meg line and some of those clients also want to use VoIP at the same time.
    Tomato is fantastic at sorting out the problems (hence i moved away from DD-WRT) but the ammount of connections does cause slow down from time to time.
    I Welcome any suggestion from anyone about solving my problem using somthing other than Overclocking but for its relative ease Overclocking never failed.
    I fully understand the risks involved in performing such a mod and was rather intreaged why it wouldnt stick at the speed i set it to. I have a list of correct frequency and backplane values hower they are only for r0.8 of the Broadcom chip. My router uses the r0.7.

    cat /proc/cpuinfo is a known command to me

    De-Bricking is also somthing i have performed a few times on my router (due to passed beta firmware problems). Bricking is not an issue with me.

    Now back on Topic..

    Setting a value of 225 will kill it, setting a value of 240 will not stick. A cpuinfo command after the reset will yield a speed of 216.
    I might give 250 a go later on tonight when things have settled down. Although I think im going to wait and see what Everyone says.
  16. robsonn

    robsonn Network Guru Member

    If you have problems with amount of connections then it looks that your clients don't know that more connection don't mean better faster download ;)
    I have something for you to calm down traffic and don't orevload router.
    Type this as firewall script, save and restart router.

    #start of script
    modprobe ipt_connlimit
    iptables -A FORWARD -p tcp --syn -s x.x.x.x -m connlimit --connlimit-above ttt -j REJECT
    iptables -A FORWARD -p tcp --syn -d x.x.x.x -m connlimit --connlimit-above ttt -j REJECT
    #end of script

    x.x.x.x - means client IP
    ttt - maximum nuber simultaneously open connection, above that they will be rejected
    Set for your clients ex. 100-150 connections per IP and you have your problems out.
  17. LAGMonkey

    LAGMonkey Network Guru Member


    Now were getting someware :D
    Thank you very much for the input, i shall definatly be using that script and implimenting it tonight.

    EDIT:: robsonn you are a star! and thank you to everyone who replied to my original message :D
  18. robsonn

    robsonn Network Guru Member

    @LAGMonkey this connection limit works also on Thibor14, 15+ firmware.
    But on Tomato 0.05 there is a bug (tofu know about this) so until he release version 0.06 limit connection per IP doesn't work. But with next version this will be fixed so wait littlemore and you can use this to relax your network ;)
  19. Toastman

    Toastman Super Moderator Staff Member Member

  20. jsmiddleton4

    jsmiddleton4 Network Guru Member

    It depends on the hardware. Buffalo's early HP version can overclock, later ones can't. Also depends on the hardware in terms of what is an ok rate to overclock to. The table on wiki gives good summary of what platforms support what oc speeds.

    having said that and as a former overclocker, adding fans, heatsinks, etc., seriously making ocing work, i don't anymore. The actual real life performance increase was not worth bricking or shortening the lifespan of routers. If the router defaults to 216, I'll run it there. If 200, I run it there.
  21. jsmiddleton4

    jsmiddleton4 Network Guru Member

    Once there was a reason for overclocking...

    Once there was a way to get back homeward
    Once there was a way to get back home
    Sleep pretty darling do not cry
    And I will sing a lullabye

    Golden slumbers fill your eyes
    Smiles awake you when you rise
    Sleep pretty darling do not cry
    And I will sing a lullabye

    Boy, you're going to carry that weight
    Carry that weight a long time

    I never give you my pillow
    I only send you my invitations
    And in the middle of the celebrations
    I break down

    I'm pretty sure without too much effort we can re-write that song.....

    Especially since I'm sure some of us have missed sleep doing overclocking....
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice