Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1574963
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly |
| Date | 2017-02-06 17:30 +0100 |
| Message-ID | <t7UkW-7hD-9@gated-at.bofh.it> (permalink) |
| References | <sQ558-7DY-25@gated-at.bofh.it> <sQ9V7-2r7-9@gated-at.bofh.it> <t7P1U-3Pt-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello, On Mon, Feb 06, 2017 at 11:39:04AM +0100, Martin Steigerwald wrote: > > Ben Hutchings reports: > > > > "It looks like the taskstats bug was introduced by 513e3d2d11c9 as that > > means cpumask_parse() may not initialise as many bits as > > cpumask_subset() compares" I see, so that patch switched parsing and printing to always use nr_cpu_ids but left the comparison functions to keep using nr_cpumask_bits which may be NR_CPUS instead of nr_cpu_ids. > Okay, any conclusion out of this? Any feedback from the maintainers of this > code? We can switch back the parse functions to nr_cpumask_bits, or just get rid of nr_cpumask_bits and use nr_cpu_ids everywhere. The only reason we use nr_cpumask_bits is because on small configurations the constant NR_CPUS can be more efficient than having to read out nr_cpu_ids variable each time. Hmm... I'll restore the parse functions to use nr_cpumask_bits instead for now. The confusing part was the output results. Input should be okay even if we flip between nr_cpu_ids and NR_CPUS. Thanks. -- tejun
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly Martin Steigerwald <martin.steigerwald@teamix.de> - 2017-02-06 11:50 +0100
Re: [REGRESSION] Two issues that prevent process accounting (taskstats) from working correctly Tejun Heo <tj@kernel.org> - 2017-02-06 17:30 +0100
[PATCH] cpumask: use nr_cpumask_bits for parsing functions Tejun Heo <tj@kernel.org> - 2017-02-06 19:30 +0100
csiph-web