<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 30, 2021 at 4:16 AM Petr Vorel <<a href="mailto:pvorel@suse.cz" target="_blank">pvorel@suse.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> Hi,<br>
<br>
> > + TST_TIMEOUT=$((dev_num*200))<br>
> Actually on heavy loaded machine this is not enough due BTRFS.<br>
> I can add something like dev_num*600 or even -1 (then previous commit would not<br>
> be needed, but IMHO still useful).<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">I personally think -1 is better.</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
And bad thing is that it breaks other zram tests, because the timer probably<br>
does not allow to run the cleanup:<br>
<br>
_tst_setup_timer()<br>
{<br>
...<br>
sleep $sec && tst_res TBROK "test killed, timeout! If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1" && kill -9 -$pid &<br>
<br>
I'm not sure if shell allow us to do it better. Maybe sent different signal than<br>
SIGKILL and define 'trap _tst_do_exit' for that signal?</blockquote><div><br></div><div class="gmail_default" style="">Sounds practicable. I guess sending SIGINT could make more sense, since</div><div class="gmail_default" style="">sometimes we use CTRL+C stop test in debugging by manual, test should</div><div class="gmail_default" style="">do cleanup work for that behavior too.</div></div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>