Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Sep 2014 12:03:46 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Steven Hartland <killing@multiplay.co.uk>
Cc:        src-committers@FreeBSD.org, John Baldwin <jhb@FreeBSD.org>, Peter Wemm <peter@wemm.org>, Alan Cox <alc@rice.edu>, svn-src-all@FreeBSD.org, Dmitry Morozovsky <marck@rinet.ru>, "Matthew D. Fuller" <fullermd@over-yonder.net>, svn-src-head@FreeBSD.org
Subject:   Re: svn commit: r270759 - in head/sys: cddl/compat/opensolaris/kern cddl/compat/opensolaris/sys cddl/contrib/opensolaris/uts/common/fs/zfs vm
Message-ID:  <5406D972.8010305@FreeBSD.org>
In-Reply-To: <8AA1D02BB967468DA07731149E95390D@multiplay.co.uk>
References:  <201408281950.s7SJo90I047213@svn.freebsd.org> <E0F163ECBF5E407F99AFDB18FAB05C58@multiplay.co.uk> <39211177.i8nn9sHiCx@overcee.wemm.org> <201409021201.15967.jhb@freebsd.org> <5405F1F3.1@FreeBSD.org> <8AA1D02BB967468DA07731149E95390D@multiplay.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
on 02/09/2014 20:43 Steven Hartland said the following:
> ----- Original Message ----- From: "Andriy Gapon" <avg@FreeBSD.org>
>> And the newly added kmem_foo() functions probably do not belong in
>> cddl/compat/opensolaris as Solaris / illumos does not have those functions.
> 
> They could be moved but their current location keeps all the kmem
> related functions neatly in one place. Spreading them around IMO
> would just make things hard to find.

BTW, here is some of my old WIP that completely removed the pre-existing kmem_*
functions and made the related code much closer to that in illumos.
Unfortunately, I will now have hard time merging my changes with your change.

https://github.com/avg-I/freebsd/compare/wip/hc/kmem_size-memguard-fix
(esp.commits e0cf2f7 and becf087)

>> I think that in this case e.g. vm_cnt.v_free_target can just be
>> used directly by the FreeBSD-specific ARC code.
> 
> It could but as above keeping everything in one place makes it to
> find and hence MFC as this area has seen changes which will require
> all those fields renamed. It also means if the logic for free pages
> changes in the future there's only one place it needs to be changed.
> 
> For those interested there's also an open review on additional
> changes in this area: https://reviews.freebsd.org/D702

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5406D972.8010305>