lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <b2e7daff1e314d927cc4b4713afa31ac25787825.camel@linux.intel.com> Date: Tue, 12 Dec 2023 15:40:18 -0800 From: Tim Chen <tim.c.chen@...ux.intel.com> To: Gang Li <gang.li@...ux.dev>, David Hildenbrand <david@...hat.com>, David Rientjes <rientjes@...gle.com>, Mike Kravetz <mike.kravetz@...cle.com>, Muchun Song <muchun.song@...ux.dev>, Andrew Morton <akpm@...ux-foundation.org> Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org, ligang.bdlg@...edance.com Subject: Re: [RFC PATCH v2 3/5] padata: dispatch works on different nodes > > list_for_each_entry(pw, &works, pw_list) > - queue_work(system_unbound_wq, &pw->pw_work); > + if (job->numa_aware) > + queue_work_node((++nid % num_node_state(N_MEMORY)), The nid may fall on a NUMA node with only memory but no CPU. In that case you may still put the work on the unbound queue. You could end up on one CPU node for work from all memory nodes without CPU. Is this what you want? Or you would like to spread them between CPU nodes? Tim > + system_unbound_wq, &pw->pw_work); > + else > + queue_work(system_unbound_wq, &pw->pw_work); > > /* Use the current thread, which saves starting a workqueue worker. */ > padata_work_init(&my_work, padata_mt_helper, &ps, PADATA_WORK_ONSTACK);
Powered by blists - more mailing lists