From: Punit Agrawal <punitagrawal@gmail.com>
To: John Kacur <jkacur@redhat.com>
Cc: punit1.agrawal@toshiba.co.jp, linux-rt-users@vger.kernel.org
Subject: Re: [PATCH 4/5] rteval: hackbench.py: Enable running on a system with low memory
Date: Mon, 13 Sep 2021 16:18:21 +0900 [thread overview]
Message-ID: <8735q99c5e.fsf@stealth> (raw)
In-Reply-To: <4273ee11-b665-53e1-57b6-1e8f443168a5@redhat.com> (John Kacur's message of "Thu, 9 Sep 2021 08:46:11 -0400 (EDT)")
Hi John,
John Kacur <jkacur@redhat.com> writes:
> On Wed, 1 Sep 2021, Punit Agrawal wrote:
>
>> From: Punit Agrawal <punit1.agrawal@toshiba.co.jp>
>>
>> The hackbench workload refues to run on RockPro64, a hexacore 64bit
>> Arm board with 4GB memory, complaining about insufficient memory
>> per-core.
>>
>> On further investigation, it turns out that workload is using an
>> arbitrary limit of 0.75 GB/core but will quite happily run on much
>> lower lower memory systems.
>>
>> Instead of preventing execution, convert the info message to a warning
>> when the memory is lower than expected but continue execution. This
>> should enable the workload to be used on a wider range of systems.
>>
>> Signed-off-by: Punit Agrawal <punit1.agrawal@toshiba.co.jp>
>> ---
>> rteval/modules/loads/hackbench.py | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/rteval/modules/loads/hackbench.py b/rteval/modules/loads/hackbench.py
>> index 3b692070e9d9..ab028c495d8b 100644
>> --- a/rteval/modules/loads/hackbench.py
>> +++ b/rteval/modules/loads/hackbench.py
>> @@ -55,9 +55,8 @@ class Hackbench(CommandLineLoad):
>> if ratio >= 0.75:
>> mult = float(self._cfg.setdefault('jobspercore', 2))
>> else:
>> - self._log(Log.INFO, "Low memory system (%f GB/core)! Not running" % ratio)
>> + self._log(Log.WARN, "Low memory system (%f GB/core)!" % ratio)
>> mult = 0
>> - self._donotrun = True
>>
>> sysTop = SysTopology()
>> # get the number of nodes
>> --
>> 2.32.0
>>
>>
>
> I'm not sure that I can accept this. The number isn't entirely arbitrary,
> it's based on verifying machines as realtime capable for customers, in
> which case I'd rather it fails early.
I think there's a misunderstanding. The above check only prevents the
hackbench workload from running - which takes ~2-3MB in the default
configuration on the board I tested. rteval (along with cyclictest,
kcompile and other workloads) executes without any issues.
In terms of memory requirements for real time systems, I am not sure
there is a single number that is valid across all applications or
systems. Any such requirement only manages to alienate certain class of
rteval users. I thought a warning was a good compromise.
I am hoping you will reconsider the need to introduce a user option for
this case.
> Maybe there is some other way to indicate that the user is okay with
> lower memory system, such as passing an --embedded flag or something
> of that nature?
If the above doesn't convince you, I will look to adding an option. How
about calling the option "--low-memory-system" to clearly state what it
enables. "Embedded" is not well-defined and hard to guess what it
relates to.
next prev parent reply other threads:[~2021-09-13 7:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-01 8:08 [PATCH 0/5] Enable rteval on Arm based systems Punit Agrawal
2021-09-01 8:08 ` [PATCH 1/5] rteval: systopology.py: Add support for systems that don't have Numa Punit Agrawal
2021-09-09 12:34 ` John Kacur
2021-09-13 2:28 ` Punit Agrawal
2021-09-01 8:08 ` [PATCH 2/5] rteval: cyclictest.py: Update logic to get core description Punit Agrawal
2021-09-09 12:41 ` John Kacur
2021-09-01 8:08 ` [PATCH 3/5] rteval: kernel.py: Add support for kthreads running with deadline policy Punit Agrawal
2021-09-09 12:47 ` John Kacur
2021-09-15 8:45 ` Punit Agrawal
2021-09-15 12:17 ` John Kacur
2021-09-16 11:34 ` Punit Agrawal
2021-09-01 8:08 ` [PATCH 4/5] rteval: hackbench.py: Enable running on a system with low memory Punit Agrawal
2021-09-09 12:46 ` John Kacur
2021-09-13 7:18 ` Punit Agrawal [this message]
2021-09-13 12:52 ` John Kacur
2021-09-14 18:32 ` John Kacur
2021-09-15 1:54 ` Punit Agrawal
2021-09-01 8:08 ` [PATCH 5/5] rteval: kcompile.py: Gracefully handle missing affinity information Punit Agrawal
2021-09-09 19:23 ` John Kacur
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735q99c5e.fsf@stealth \
--to=punitagrawal@gmail.com \
--cc=jkacur@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=punit1.agrawal@toshiba.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox