<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
i am running it as root but when i have checked <span style="font-family: Calibri, "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;"> /sys/fs/cgroup/cpu,cpuacct/system.slice/system-sshd.slice/cpu.rt_runtime_us
the default value is 0 and /proc/sys/kernel/sched_rt_runtime_us is -1.<br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;">When i am manually
writing into this the test are getting passed but i am not able to understand why these value are set to 0 and -1 resp. by default it should set to 950000 according to kernel documentation.Since /sys is session persistent i am lossing value after restart what
changes i should made so that i will retain the value of cat /proc/sys/kernel/sched_rt_runtime_us as 950000.<br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;">Kindly suggest.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-family: Calibri, "Segoe UI", Calibri, Thonburi, Arial, Verdana, sans-serif, "Mongolian Baiti", "Microsoft Yi Baiti", "Javanese Text"; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important;">Thanks</span></div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Jan Stancek <jstancek@redhat.com><br>
<b>Sent:</b> Thursday, August 27, 2020 12:43 PM<br>
<b>To:</b> Pankaj Vinadrao Joshi <Pankaj.VJ@exaleapsemi.com><br>
<b>Cc:</b> Li Wang <liwang@redhat.com><br>
<b>Subject:</b> Re: cpu.rt_runtime_us parameter</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText"><br>
<br>
----- Original Message -----<br>
> Hi ,<br>
><br>
> i was checking kernel.sched_rt_runtime_us from $ cat<br>
> /sys/fs/cgroup/cpu,cpuacct/system.slice/system-sshd.slice/cpu.rt_runtime_us<br>
> which seems to be 0 ,but according to kernel documentation the default<br>
> value of cpu.rt_runtime_us is set 950000 but i am wondering in my case how<br>
> i am getting it as 0 with linux kernel 5.5.6 i am not able to understand.I<br>
> am running few test which are related to RT and are failing because value of<br>
> cpu.rt_runtime_us is set to 0.<br>
<br>
If you're looking help with LTP, you should CC LTP list.<br>
<br>
> when i am echoing $ echo 950000 ><br>
> /sys/fs/cgroup/cpu,cpuacct/system.slice/system-sshd.slice/cpu.rt_runtime_us<br>
> the test are getting passed.<br>
><br>
> Can you suggest why i am getting the default value cpu.rt_runtime_us as 0<br>
> instead of 950000 ??<br>
<br>
Most common cause is that you are not running in root cgroup, or you're missing<br>
kernel config option.<br>
<br>
[EXT]<br>
</div>
</span></font></div>
</body>
</html>