Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8398109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:57:31+00:00 2026-06-09T20:57:31+00:00

I am currently working on a little in-house testing app to create multiple types

  • 0

I am currently working on a little in-house testing app to create multiple types of load on the computer so that we can see how our software works under load. I am getting hung up on one request, in that I make some sort of way to specify a percent usage of the CPU (say, 40%) before the user runs the program, and that will hopefully keep the cpu in a range +-10% of what they put in. I’ve been told that they had seen programs doing it before, but every one that I had seen that claimed to do so did not work. I am attempting to read an average usage and sleep the thread running so that the CPU usage lowers, but I have found that is not accurate. It is also going to be used on multiple servers, each with different CPUs, so I can’t do very much hard coding as it will need to work on each server. I personally do not think its possible to accurately do, but I’m asking here as a last ditch effort to see if anyone else has come across software similar to this, and knows how it would be written.

Edit: I have attempted to use a lower priority thread, and was also told that would not be useful to them (though I had the option created just for the purpose of testing before this was requested of me).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:57:33+00:00Added an answer on June 9, 2026 at 8:57 pm

    We did something analogous a while back tuning an application server. We found that our overall throughput was best when the CPU was around 70%. Our solution was to spin up additional threads, with a delay between each one, until the desired load was reached. If CPU went above 80%, we reduced the number of running threads (signaled a thread to finish its current work and then terminate). If CPU dropped below 60%, we fired up a new thread.

    You could apply similar logic to create artificial load that you can tune to a target CPU utilization. Your threads would need to balance CPU and non-CPU (IO, or just sleep) in order to allow for fine tuning. If your threads are very CPU intensive, each will consume 1 CPU core to about 100%.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently am working on a little app that requests user info from my
I'm currently working on a little project in which I'm trying to create a
I'm currently working on a website that dynamically builds a city made of little
I'm currently working on a class that will create an x,y graph according to
.Hi guys, i need a little help with a project that i'm currently working
I am currently working a system whereby my users can pay for items that
I'm currently working on a big app and I found a little Detail. It's
I'm currently working on a JavaScript project that's a little larger than what I'm
I'm currently working on a little html/js site and my current goal is to
Currently working for the first time with JSON and with little experience of jQuery.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.