Long Term Load Generator Using Fixed Thread Pool
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional load generators are unable to reliably generate multi-threaded loads for extended periods, such as days or weeks, due to limited resources like memory, and lack the capability to maintain a specified number of concurrent threads over a defined time duration during performance testing.
Innovation Solution
A long-term load generator system that utilizes a thread pool of a fixed size to execute a specified number of concurrent processing threads for a specified time duration, allowing for reliable multi-threaded load generation by managing resources and maintaining thread counts throughout the testing period.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If conventional load generators use multi-threading to generate load, then the load generation capability is improved, but the system cannot maintain reliable operation for extended periods due to limited memory resources
Solution Approach 1:
The system segments the thread management into a fixed-size thread pool that is pre-configured and reused throughout the test duration. Instead of creating and destroying threads continuously, the same pool of threads is segmented and allocated to different test iterations, reducing memory allocation overhead and improving long-term reliability.
Solution Approach 2:
The thread pool is pre-configured with a fixed size before the performance test begins. This preliminary action of allocating and initializing the thread pool once eliminates the need for repeated memory allocations during the test, enabling reliable operation over extended periods while maintaining high load generation capability.
2Quantity of substance
If conventional load generators execute a specified number of iterations per thread, then the test coverage is improved, but the system cannot maintain a specified number of concurrent threads over a defined time duration
Solution Approach 1:
The fixed-size thread pool serves multiple functions: it executes different iterations, maintains concurrent threads throughout the test duration, and can be reused across multiple test cycles. This universal thread pool design allows the system to maintain a specified number of concurrent threads over extended time durations while executing the required number of iterations.
Solution Approach 2:
The thread pool maintains continuous operation throughout the entire test duration without interruption. Threads are continuously allocated and executed from the pool, ensuring that the specified number of concurrent threads is maintained over the defined time duration, enabling long-term performance testing.
3Adaptability or versatility
If conventional load generators are configured with pluggable timers for load statistics, then the measurement flexibility is improved, but the system lacks the capability to receive and process overall time duration input for performance tests
Solution Approach 1:
The system automatically manages the thread pool lifecycle and test execution based on the specified time duration input. The load generator self-configures the test parameters and manages the thread pool without requiring manual intervention, making it easy to specify the overall time duration while maintaining the flexibility of pluggable timers for detailed statistics collection.
Data Source
AI summary
A method and system for long-term load generation is described.


