On Thu, Apr 06, 2017 at 07:45:16AM -0400, Dennis Dalessandro wrote: > On 04/06/2017 03:49 AM, Leon Romanovsky wrote: > > On Wed, Apr 05, 2017 at 08:09:16PM +0000, Marciniszyn, Mike wrote: > > > > Is there a another way we should be looking at for setting things like this? > > > > > > > > Use vendor channel interface to configure your driver. > > > > > > > > > > What is that? configfs or something else? > > > > An immediate answer without digging into your code is Matan's KABI work. > > https://github.com/matanb10/linux/tree/abi-devel-latest > > Until that code is formally accepted and actually in the kernel we can't > base our changes that are ready to go now (for 4.12) on it. And we can't accept module parameters. I already presented my setup, which I know in use by many people. Standalone kernel with everything compiled in, everything runs in read-only small image without distro bloat. it gives very small footprint, very fast execution and system protection. In such case, we'll be required to rebuild whole image to update command line for one module parameter and we will need to do it just for specific application, which is insane. I'm glad that you realize now the importance of Matan's work and how it can help overcome your current problems, You (Intel) are invited to help him to make it faster. > > > However, I have an question, how do you ensure that user memory has no > > users without refcounts? Will it be possible to dereg the memory despite > > the fact that there are users? > > Mike can correct me if I'm wrong but it is still refcounted. Just not per > CPU, global if you will. IMHO, global will be always more expensive than percpu, due to locality. However your patch presents different picture. You are claiming that removing percpu_refcnt and leaving global will make work faster. How will it be? Thanks > > -Denny >
Attachment:
signature.asc
Description: PGP signature