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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DS7PR11MB6077A729E4338E6C62939005FCBB2@DS7PR11MB6077.namprd11.prod.outlook.com>
Date: Tue, 22 Apr 2025 17:14:40 +0000
From: "Luck, Tony" <tony.luck@...el.com>
To: "Moger, Babu" <bmoger@....com>, James Morse <james.morse@....com>,
	"x86@...nel.org" <x86@...nel.org>, "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>
CC: "Chatre, Reinette" <reinette.chatre@...el.com>, Thomas Gleixner
	<tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>, Borislav Petkov
	<bp@...en8.de>, H Peter Anvin <hpa@...or.com>, Babu Moger
	<Babu.Moger@....com>, "shameerali.kolothum.thodi@...wei.com"
	<shameerali.kolothum.thodi@...wei.com>, D Scott Phillips OS
	<scott@...amperecomputing.com>, "carl@...amperecomputing.com"
	<carl@...amperecomputing.com>, "lcherian@...vell.com" <lcherian@...vell.com>,
	"bobo.shaobowang@...wei.com" <bobo.shaobowang@...wei.com>,
	"tan.shaopeng@...itsu.com" <tan.shaopeng@...itsu.com>,
	"baolin.wang@...ux.alibaba.com" <baolin.wang@...ux.alibaba.com>, Jamie Iles
	<quic_jiles@...cinc.com>, Xin Hao <xhao@...ux.alibaba.com>,
	"peternewman@...gle.com" <peternewman@...gle.com>, "dfustini@...libre.com"
	<dfustini@...libre.com>, "amitsinght@...vell.com" <amitsinght@...vell.com>,
	David Hildenbrand <david@...hat.com>, Rex Nie <rex.nie@...uarmicro.com>, Dave
 Martin <dave.martin@....com>, "Ko, Koba" <kobak@...dia.com>, "Shanker
 Donthineni" <sdonthineni@...dia.com>, "fenghuay@...dia.com"
	<fenghuay@...dia.com>
Subject: RE: [PATCH v8 08/21] x86/resctrl: Expand the width of dom_id by
 replacing mon_data_bits

> Do we really need to maintain a separate list for all the private pointers?
>
> Here's my understanding of the patch—please correct me if I’m missing
> anything:
>
> Patch Requirements:
>
> 1. Expand dom_id.
>
> 2. Pack all necessary data (dom_id, event_id, resid) into the
> of->kn->priv pointer when creating event files in the mon_data
> directory for each domain.

This step includes searching the list of previously created priv structures
to find a matching one that can be shared.  This happens all the time
because the same set of values is re-used over and over. Essentially
we only allocate anything while creating the mon_data directory in the
root directory of resctrl. James' original implementation made use of
this by special case allocation for the default group, and then doing
kernfs lookups while creating new groups to find the matching one
and linking to the same ->priv pointer.

-Tony

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ