[Solved] high CPU load, .NET

Discussion in 'Technical Support (AdGuard for Windows)' started by Dolfi, Nov 21, 2014.

  1. Dolfi

    Dolfi Banned

    Joined:
    Nov 21, 2014
    Messages:
    218
    Hi,

    bc I am fed up with the attitude of AdMuncher (no progress since years and activly blocking support (that "shannow" guy (their only "programmer") on the IRC channel forbids to tell ppl about proxies to support IE11 and to tell about AdGuard)) I tried AdGuard.
    Unfortunately I do have a few issues with it:
    - .NET is bloatware that slows down machines. Why do you use it?
    - worse: AdGuard uses high CPU (bc of .NET??) which slows down not only Atoms but even Core2Duo machines
    I could put up with .NET (although it is an unnecessary additional security risky bloatware) but the high CPU load makes AG uncomfortable to unusable on older systems.

    How to solve these two issues?


    Thank you.
     
  2. Dolfi

    Dolfi Banned

    Joined:
    Nov 21, 2014
    Messages:
    218
    what a pity and shame (.NET for a service!!)! But thanks for the answer.

    ---------- Post added at 02:15 PM ---------- Previous post was at 02:09 PM ----------

    AdMuncher is a shitty company with NO customer orientation. A dump!
    But the product is light on resources. And a filter/proxy should be like such.

    You really should think over your strategy to use (unreliable, untrusted) bloatware as programming libraries. Not all users have i7 at home.
    Besides: You hurt your sales. The browser addon works well on the same machine the software causes heavy lags.
     
  3. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,895
    Filtering is partially .NET and partially native -- for drivers part.

    What about heavy lags, what computer configuration are we talking about?
    I am pretty sure that Adguard filtering is fast enough comparing to any other product on common hardware.

    For instance Mac OS X version is in development right now and it is native app written in Objective C.
    We've compared the filtering speed and Windows version performance is the same.

    So if you have lags I bet the problem is not in the framework we use.
    But it may be in our code, so we'd like to know more about it.
     
  4. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,895
    That's not true. .NET is a well-known and commonly used platform. From the "security" perspective using .NET is much more "secure" than using old non-managed languages. Mostly because of the memory management which is "safer" in this case.

    We use it because it allows us to be fast in development.
    Implementing everything using C or C++ will:
    1. Slow down the development
    2. Make the software less stable (we'll make it stable again but that takes lots of time).

    And that's the question.

    How do you measure it? Just using task manager or you really see the slowdown?
    Do you see the slowdown in pages loading?
    What if you disable Ad Blocker leaving Browsing Security module only? Is there any slowdown in this case?
     
    Last edited by a moderator: Nov 21, 2014
  5. Dolfi

    Dolfi Banned

    Joined:
    Nov 21, 2014
    Messages:
    218
    SOLVED

    Hi avatar,

    thanks for your replies.
    Something must have messed up during the 1st install. The install took way longer than the 2nd and, as described, the installed software used much CPU.

    Luckily it is a VM and I set a snapshot before installing. So I reverted to 'clean machine' and installed again.
    AdGuard works like a charm now!
    Even though the VM only gets 1 thread of the Core2Duo processor AdGuard uses almost no CPU and browsing is great (though warning me "You have too many filter subscriptions").

    Thank you.

    P.S. I cannot change the thread topic. Would you like to add a [Solved] before it?
     
  6. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,895
    Have you saved the original snapshot, the one with a problem?
    We could analyze it and see what was wrong.
     
  7. Dolfi

    Dolfi Banned

    Joined:
    Nov 21, 2014
    Messages:
    218
    unfortunately not (it was huge anyway, ~40GB, maybe 25 after compression), I just did 'revert to snapshot' where the new files are just deleted. Whilst I backup the content of that VM I do not backup the *.vmdk files, i.e. I cannot even retrieve it from backup.