lkml.org 
[lkml]   [2023]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v5 8/8] selftests/resctrl: Adjust effective L3 cache size when SNC enabled
Date
> > +   if (4 * node_cpus >= cache_cpus)
> > + return 4;
> > + else if (2 * node_cpus >= cache_cpus)
> > + return 2;
>
>
> If "4 * node_cpus >= cache_cpus " is not true,
> "2 * node_cpus >= cache_cpus" will never be true.
> Is it the following code?
>
> + if (2 * node_cpus >= cache_cpus)
> + return 2;
> + else if (4 * node_cpus >= cache_cpus)
> + return 4;


Shaopeng TAN,

Good catch. Your solution is the correct one.

Will fix in next post.

-Tony

\
 
 \ /
  Last update: 2023-09-07 18:24    [W:0.278 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site