<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, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
We added the sleep=0 option in the /etc/x2go/x2goagent.options file.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
X2GO_NXOPTIONS="sleep=0"<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In the /etc/x2go/x2goserver.conf file, we enabled the superenicer,i.e., changed enable=no to enable=yes.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>[superenicer]<br>
</span>
<div># enable the SupeReNicer code in x2gocleansessions, this will renice suspended s<br>
</div>
<div>essions to nice level 19<br>
</div>
<div># and renice them to level 0 if the session becomes marked as running again...<br>
</div>
<div><b>enable=yes</b><br>
</div>
<span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and removed the comment from idle-nice-level and kept the value of 19<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span># the idle nice level (for suspended sessions)<br>
</span>
<div>idle-nice-level=19</div>
<div><br>
</div>
<div><br>
</div>
<div>Then we rebooted our system. With these changed settings we were able to see comparable processing speeds and CPU usage for active vs suspended sessions. This was our desire because many times we have to run processes overnight or over the course of several
days while the session is suspended.<br>
</div>
<span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
h<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,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 style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Ulrich Sibiller <uli42@gmx.de><br>
<b>Sent:</b> Tuesday, June 2, 2020 3:14 AM<br>
<b>To:</b> h i <qpile117@outlook.com><br>
<b>Cc:</b> x2go-user@lists.x2go.org <x2go-user@lists.x2go.org><br>
<b>Subject:</b> Re: [X2Go-User] Suspending sessions causes performance slowing down</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On Tue, Jun 2, 2020 at 3:04 AM h i <qpile117@outlook.com> wrote:<br>
> I ran a few tests and see the issue is GUI related in our case. It seems to speak to the 2nd reason for sleep you described regarding the sending of pixmaps.<br>
><br>
> I ran two MATLAB scripts. Both including the same steps. However, 1 script suppressed pop-windows tracking the script status. The 2nd script did not suppress the pop-up windows displaying<br>
<br>
What gui toolkit is matlab using?<br>
<br>
> real-time status. The 1st script involving command lines ran in the same amount whether the session was active or suspended. No reduction of time or CPU usage. The 2nd script took much longer and CPU was reduced significantly while the session was suspended.<br>
><br>
> A few questions:<br>
><br>
> for X2GO_NXOPTIONS="sleep=0", what does 0 represent in time. If I set the value to 1000, what would that mean?<br>
<br>
This defines how long nxagent should sleep. The unit should be<br>
microseconds but there's a ticket for doublechecking that because it<br>
looks like a mixup happened during implementation<br>
(<a href="https://github.com/ArcticaProject/nx-libs/issues/928">https://github.com/ArcticaProject/nx-libs/issues/928</a>).<br>
<br>
> Is the idle-nice-level=19 for suspended sessions the default setting?<br>
<br>
As I said I don't know the superreniver feature in detail.<br>
<br>
> Would the supernicer setting override the x2goagent sleep option setting?<br>
<br>
no, they are two different things.<br>
<br>
> What would be an example command for the -irlimit option in x2goagent.options file.<br>
<br>
see <a href="https://github.com/ArcticaProject/nx-libs/issues/796">https://github.com/ArcticaProject/nx-libs/issues/796</a><br>
<br>
Uli<br>
</div>
</span></font></div>
</div>
</body>
</html>