# Benchmark program on multi-core system

**URL:** <https://techcommunity.softwareag.com/t/benchmark-program-on-multi-core-system/177762>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Code-Samples\
**Created:** [July 29, 2014, 2:48pm UTC](https://techcommunity.softwareag.com/t/benchmark-program-on-multi-core-system/177762 "2014-07-29T14:48:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hubert\_Kauker1](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@Hubert\_Kauker1](https://techcommunity.softwareag.com/u/Hubert_Kauker1)\
**Post date:** [July 29, 2014, 2:48pm UTC](https://techcommunity.softwareag.com/t/benchmark-program-on-multi-core-system/177762/1 "2014-07-29T14:48:14Z")

</div>

Hi,  
we want to benchmark Natural on a Linux platform with multiple cores.

The idea is based on two parts.

A. There is a Natural program which simulates a “base workload” of N user sessions, where N=100, 200, 300, …  
The program should be able to “fork” independent sessions, as many as the parameter N will tell.  
It is expected that Linux will assign them to different cores.  
Within each session, a “fragment” of our application will be called with given parameters.  
This fragment will execute a representative chunk of Natural code and also do some heavy Adabas operations.  
It does not matter what output is produced by that code since we do not want to render or otherwise use the results in any way.  
We do not even want to time those operations.  
In sum: we just want to give all available cores something to do, which we control, and possibly “stress” them up to their capacity limits.

B. In addition, there is session (N+1) in which a dialog program will be executed.  
It will be doing some “normal” user operation and its timing behaviour will be recorded.

Can you please advise us how we can implement such a workload generator?  
Thanks to all.  
Hubert

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [July 29, 2014, 9:06pm UTC](https://techcommunity.softwareag.com/t/benchmark-program-on-multi-core-system/177762/2 "2014-07-29T21:06:38Z")

</div>

I guess the simplest process would be to use a shell script which takes the number of sessions as input  
and then start the requested number of natural instances in BATCHMODE

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:31pm UTC](https://techcommunity.softwareag.com/t/benchmark-program-on-multi-core-system/177762/3 "2021-04-02T15:31:42Z")

</div>

Closed on April 2, 2021, 3:31pm UTC


