This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Hyper threading and ASG performance

Hi,
my current ASG has hyper threading enabled.

What I am interested in does hyper threading help or hinder ASG in its function?

I realise as a home user that hyper threading is not likely to add much if any to the throughput of my ASG. In reality it probably uses extra memory for all the extra threads running and processor cycles managing the threads.

Ian M[:)]


This thread was automatically locked due to age.
Parents
  • IIRC, long ago it was stated that the proxy (Squid at the time) & content filter were faster with hyperthreading.

    There's no extra software threads, so no extra RAM will be used.

    The only time a system is normally slower with HT on is if you're only doing a single task.
    Astaro has so much going on (PF, IDS, proxies, logging, accounting, ...) that it is probably faster with it on.

    Also, Linux's CPU scheduler is very HT aware.

    Barry
  • Hi Barry,
    there are a couple of reasons I ask
    1/. is just general inquisitiveness
    2/. the other is that I see a lot of multiple tasks for some functions within the ASG eg one for each CPU and others I only see 1. So in theory each task uses extra ram or are they just virtual tasks that don't do anything.

    One of the tasks kapcid will use 30% cpu when something goes wrong and the system doesn't pass any traffic. Just over 1 CPU. I haven't been able to indentify what goes wrong because logging stops.

    Ian M
  • Most tasks starting with 'k' are internal linux kernel threads for tracking interrupts, etc.
    They probably do use a little RAM, but as they're in the kernel, not a lot.

    I don't know what would cause the acpi daemon to be using a lot of CPU though.

    Barry
  • Maybe something like an Ethernet adapter that's about to bite the dust?  (That's a question, not an answer.)
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi Bob,
    I hope not, the NIC isn't that old. I do have a couple of others that will fit the mini case.

    The application running wild happened quite a lot during the initial configuration of this box.

    Ian M
  • RFCat, that kind of sounds like a classic sign of hyperthreading issues.  There are instances where hyperthreading works great and where it doesn't (Novell Netware O/S's, for example) - and leads to lockups.  The ultimate answer depends on how the threading was implemented and the nature of the OS and running apps.  If you don't get the ACPI 30% CPU Utilization lock when HT is off, leave it turned off in BIOS.

    Bob, if it's an HT issue, it could well be an ethernet NIC, but probably not that it's failing (though that can happen).  Rather it would be an I/O lock.  Again the easy test is to try it without HT and see if the problem goes away.
  • Thanks, Eric, that makes sense.  I was just recalling that the few times I've seen an apci problem, it was an Ethernet adapter that needed a different config or just swapped out.  I'm sure there are other devices that could be causing Ian's problem.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi folks,
    I will turn off HT in the bios, next question is will I need a fresh install?

    An interesting bit of potentially useless knowledge, during the build of the new hardware if I used an existing config from the old ASG, there wasn't any issues. But as soon as I tried to do a fresh config to remove some of the incorrect configs I ran into problems. Let it settle for a day before continuing with the build and it went together easier. Still not without the odd problem or 2.

    Ian M
  • You shouldn't need a fresh install for the HT issue.  With it turned off in BIOS, HT mode won't run.
  • Ht at first was hailed as a great boost but HT is actually Intel's way of masking inefficiencies of certain cpu's.  the entire p-4 series(including xeons) were very inefficient and the ahtlons spanked them for it.  The HT fakes a second cpu in an effort to keep it's long instruction pipeline full.  That's why the p-4's were such great processors at things that had long, contiguous datasets but faltered anywhere3 else.  Later when folks really put the screw to HT they found in databases and other high loads situations actually caused data corruptions..so you gain 10-15% performance boost but gained data corruptions.  I always turn off ht..both because it's not that much of a benefit and you can lower your cpu's heat output by 5-10% on top of that.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Hi William,
    thank you for that explanation. I now know why one of the VM machines at work has poor performance while the lower rated HP with AMDs runs rings around.

    Ian
  • Hi,
    I disabled the HT on my ASG while installing the latest update. The ASG seems to be smoother and more responsive to webadmin and configuration changes.

    Only time will tell when the rest of the family gets up and turns the PCs on.

    Thank you all for your advice on the subject.

    Ian M
Reply
  • Hi,
    I disabled the HT on my ASG while installing the latest update. The ASG seems to be smoother and more responsive to webadmin and configuration changes.

    Only time will tell when the rest of the family gets up and turns the PCs on.

    Thank you all for your advice on the subject.

    Ian M
Children
No Data