Results 1 to 7 of 7

Thread: cpuhog

  1. #1

    cpuhog

    Is the cpuhog only for winNT?

    anyone can show me some cpuhog program?

    copy from http://downloads.securityfocus.com/l...t-vs-unix.pdf.

    SYSTEMS AFFECTED
    WinNT

    PROBLEM
    Applications can set their own priority level, which affects how

    often Windows NT allows those applications to run. An application

    running under a user account with administrative privileges can

    set its priority to any of 32 levels, with the highest level

    giving it more time slices. Applications running under accounts

    without administrative privileges can set their priority to any

    of the first 16 of those levels.

    CpuHog sets its priority to the highest level available, which is

    level 16 when run by a normal user. Windows NT attempts to deal

    with CPU-hogging applications by boosting the priority of other

    applications. However, Windows NT will only boost applications as

    high as level 15. Thus, all other applications - even system

    utilities such as Task Manager - never get a chance to execute

    while CpuHog is running. CpuHog program can be found at

    www.ntinternals.com. Credit for discovery of this bug goes to

    Mark Russinovich.

    EXPLOIT

    SOLUTION
    Give Task Manager level 16. In that way You will be able to kill

    hogging process.

  2. #2
    Senior Member
    Join Date
    Oct 2002
    Posts
    1,130
    I've used it against Windows 2000. I think they fixed the problem with Win2k SP1.

    Not completely sure, though.
    Government is like fire - a handy servant, but a dangerous master - George Washington
    Government is not reason, it is not eloquence - it is force. - George Washington.

    Join the UnError community!

  3. #3
    AO Decepticon CXGJarrod's Avatar
    Join Date
    Jul 2002
    Posts
    2,038
    Looks like it. Scheduling a task priority is built into W2k and higher. (Task Manager)
    N00b> STFU i r teh 1337 (english: You must be mistaken, good sir or madam. I believe myself to be quite a good player. On an unrelated matter, I also apparently enjoy math.)

  4. #4
    Just a Virtualized Geek MrLinus's Avatar
    Join Date
    Sep 2001
    Location
    Redondo Beach, CA
    Posts
    7,323
    CPUHog is also good as a stress-tester. You can use it while running other programs to see how well your box (NT/2K/XP) will handle the load. Especially when hitting 100% CPU Usage. You can also find it with the NT Resource Kit.
    Goodbye, Mittens (1992-2008). My pillow will be cold without your purring beside my head
    Extra! Extra! Get your FREE copy of Insight Newsletter||MsMittens' HomePage

  5. #5
    Master-Jedi-Pimps0r & Moderator thehorse13's Avatar
    Join Date
    Dec 2002
    Location
    Washington D.C. area
    Posts
    2,885
    One of the better stress testers that I have found is OpenSTA.

    http://www.opensta.org/

    It has a macro feature that records actions that can be played back against a host. The beauty is that you can simulate thousands of hosts should you wish.

    I used this product against a major vendor's product which later proved to be a POS that cannot handle sustained load.

    Anyway, give this app a chance. You have nothing to lose cause it is offered at the right price - free!!



    --TH13
    Our scars have the power to remind us that our past was real. -- Hannibal Lecter.
    Talent is God given. Be humble. Fame is man-given. Be grateful. Conceit is self-given. Be careful. -- John Wooden

  6. #6

    cool, *nix also?

    in the /tmp directory, create a file called cpuhog
    #!/bin/sh

    # This script tries to consume all available cpu time

    while :
    do
    junk="Let's try to waste valuable cpu cycles"
    done
    Make your script executable and run in background...

    How *nix deal with the CPU process priority?

    hen, linux has a http://www.xmailserver.org/linux-patches/cpuhog.c as scheduler...

    too much to learn, wish 10 yrs younger!!

  7. #7

    GNU open source

    Thanks, thehorse13, I am a wild horse who loves #13 too.

    Sourceforge is a real good site, I got a lot of PHP code for my webstats, I just have a side question popup:

    OpenSource is pretty good, but dont have much user-friendly or RAD products like windows support (or I dont know). I was working PHP use Maguma, phpedit,etc, manually code (of course I keep my class, function, module etc), but my boss uses codecharge, much fast RAD tool.

    So is the future for open source or Microsoft? Before I was positive about Linux and use Redhat, but I felt sad when Redhat announced RHEL, and Novell's effort to push Suse didnt do well.

    Which way to go, does Linux have promising future.....maybe Longhorn will say somthing about windows security?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •