<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 Fri, Mar 4, 2022 at 8:00 PM Cyril Hrubis <<a href="mailto:chrubis@suse.cz">chrubis@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>
> The mem library verifies the max_page_sharing validity before<br>
> setting because some old kernels do not have it. Thus it is fine<br>
> to use the prefix '?'.<br>
> <br>
> +               "?/sys/kernel/mm/ksm/run",<br>
> > +               "?/sys/kernel/mm/ksm/merge_across_nodes",<br>
> > +               "?/sys/kernel/mm/ksm/sleep_millisecs",<br>
> ><br>
> <br>
> <br>
> But for the two knobs(run, sleep_millisecs) that should exist unless<br>
> the kernel disables KSM. So here we'd better start with prefix '!' and<br>
> add .needs_kconfg for ???CONFIG_KSM=y' check.<br>
> (This also fit for other ksm tests)<br>
<br>
I guess that if we put ! before the merge_across_nodes that would cause<br>
TBROK on systems without CONFIG_NUMA or kernels without that feature.<br>
<br>
So what about just removing the question marks there and adding<br>
<span class="gmail_default" style="font-size:small"></span>.need_kconfigs for KSM and NUMA?<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Er, that's exactly what I meant in the last email, maybe you overlooked</div><div class="gmail_default" style="font-size:small">the last sentence:).</div><br></div><div><div class="gmail_default" style="font-size:small">i.e. </div><br></div><div><div class="gmail_default" style="font-size:small">"</div></div><div><div class="gmail_default" style="font-size:small">  prefix ! for 'run' and 'sleep_milisecs'</div><div class="gmail_default" style="font-size:small">  no prefix for 'merge_across_nodes'</div><div class="gmail_default" style="font-size:small">  <span class="gmail_default"></span>.need_kconfigs for KSM and NUMA</div><div class="gmail_default" style="font-size:small">"</div></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>