Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2016 08:55:11 -0500
From:      Karl Denninger <karl@denninger.net>
To:        freebsd-fs@freebsd.org
Subject:   Re: ZFS ARC under memory pressure
Message-ID:  <73545a4b-fafc-f623-a8f5-cfcd3d8a2bd7@denninger.net>
In-Reply-To: <20160821082842.GR83214@kib.kiev.ua>
References:  <20160816193416.GM8192@zxy.spb.ru> <8dbf2a3a-da64-f7f8-5463-bfa23462446e@FreeBSD.org> <20160818202657.GS8192@zxy.spb.ru> <c3bc6c5a-961c-e3a4-2302-f0f7417bc34f@denninger.net> <20160819201840.GA12519@zxy.spb.ru> <bcb14d0b-bd6d-cb93-ea71-3656cfce8b3b@denninger.net> <20160820152225.GP83214@kib.kiev.ua> <97f166f0-4d47-d5a3-ecb3-d15f1ecf9c1f@denninger.net> <20160821082842.GR83214@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms040408040108020304040707
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 8/21/2016 03:28, Konstantin Belousov wrote:
> On Sat, Aug 20, 2016 at 11:08:44AM -0500, Karl Denninger wrote:
>> If you are talking about the case of an executable in which part of th=
e
>> text is evicted you are correct, however, you are still choosing in th=
at
>> instance to evict a page for which there will likely be a future deman=
d
>> and thus require an I/O (should that executable come back up for
>> execution) as opposed to one for which you have no idea how likely
>> demand for same will be (a data page in the ARC.)
> No, I am not talking about only text segments.
> Any clean page can be reused after unmapping.
And this accounts for pages being evicted to the swap..... how?=20
(Obviously they're not simply unmapped, and thus were not "clean" when
targeted by the VM)
>> Since the VM has no means of "coloring" the ARC (as it is opaque other=

>> than the consumption of system memory to the VM) as to how "useful"
>> (e.g. how often used, etc) a particular data item in the ARC is, it ha=
s
>> no information available on which to decide.  However, the fact that a=
n
>> executing process is in some sort of waiting state still likely trumps=

>> an ARC data page in terms of likelihood of future access.
> Buffer cache behaves exactly the same, since access references are not
> counted for the pages constituing buffers.
It is always amusing when I am told how things are supposed to occur
(and thus assumptions that were made when writing code) when I have
spent countless hours observing how they actually do behave and writing
code to mitigate the very behavior that is claimed to not happen.

I should have something for 11-MostlyStable on the original PR's thread
in a couple of weeks, assuming I manage to complete what I'm working on
right now on-schedule.

--=20
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/

--------------ms040408040108020304040707
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgMFADCABgkqhkiG9w0BBwEAAKCC
Bl8wggZbMIIEQ6ADAgECAgEpMA0GCSqGSIb3DQEBCwUAMIGQMQswCQYDVQQGEwJVUzEQMA4G
A1UECBMHRmxvcmlkYTESMBAGA1UEBxMJTmljZXZpbGxlMRkwFwYDVQQKExBDdWRhIFN5c3Rl
bXMgTExDMRwwGgYDVQQDExNDdWRhIFN5c3RlbXMgTExDIENBMSIwIAYJKoZIhvcNAQkBFhND
dWRhIFN5c3RlbXMgTExDIENBMB4XDTE1MDQyMTAyMjE1OVoXDTIwMDQxOTAyMjE1OVowWjEL
MAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExGTAXBgNVBAoTEEN1ZGEgU3lzdGVtcyBM
TEMxHjAcBgNVBAMTFUthcmwgRGVubmluZ2VyIChPQ1NQKTCCAiIwDQYJKoZIhvcNAQEBBQAD
ggIPADCCAgoCggIBALmEWPhAdphrWd4K5VTvE5pxL3blRQPyGF3ApjUjgtavqU1Y8pbI3Byg
XDj2/Uz9Si8XVj/kNbKEjkRh5SsNvx3Fc0oQ1uVjyCq7zC/kctF7yLzQbvWnU4grAPZ3IuAp
3/fFxIVaXpxEdKmyZAVDhk9az+IgHH43rdJRIMzxJ5vqQMb+n2EjadVqiGPbtG9aZEImlq7f
IYDTnKyTo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qu2LG7+hH6R0SLvcBRU3mMhtLvXybz39qYVFNZ+jMQOLCxkbqVi3635UchGWnA0VA7rzaRL
xX0zoChmSsJDUPQED89Z6phD600AAAAAAAA=
--------------ms040408040108020304040707--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?73545a4b-fafc-f623-a8f5-cfcd3d8a2bd7>