Date: Sun, 02 Sep 2018 10:22:55 -0600 From: Ian Lepore <ian@freebsd.org> To: bob prohaska <fbsd@www.zefox.net>, Mark Millard <marklmi@yahoo.com> Cc: freebsd-arm@freebsd.org Subject: Re: RPI3 swap experiments (r338342 with vm.pageout_oom_seq="1024") Message-ID: <1535905375.9486.18.camel@freebsd.org> In-Reply-To: <20180902152717.GB44384@www.zefox.net> References: <FA3B8541-73E0-4796-B2AB-D55CE40B9654@yahoo.com> <20180814014226.GA50013@www.zefox.net> <CANCZdfqFKY3Woa%2B9pVS5hika_JUAUCxAvLznSS4gaLq2kKoWtQ@mail.gmail.com> <20180815013612.GB51051@www.zefox.net> <CANCZdfoB_AcidFpKT_ZmZWUFnmC4Bw55krK%2BMqEmmj=f9KMQ2Q@mail.gmail.com> <20180815225504.GB59074@www.zefox.net> <20180901230233.GA42895@www.zefox.net> <F3AF3A89-322E-4048-A758-4276C1A1BEA0@yahoo.com> <20180902083217.GA44384@www.zefox.net> <6B8E28DC-075D-4829-9BEA-F36DDB1E2A25@yahoo.com> <20180902152717.GB44384@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2018-09-02 at 08:27 -0700, bob prohaska wrote: > On Sun, Sep 02, 2018 at 06:57:15AM -0700, Mark Millard wrote: > > Was this with or without (presuming a ufs file system): > > > > tunefs: trim: (-t) enabled > > > > ? If enabled, with or without: > > > > sysctl vfs.ffs.dotrimcons=1 > > > > In other words: was "consolidation of TRIM / BIO_DELETE > > commands to the UFS/FFS filesystem" enabled? Disabled? > > > > No, it was not. By all accounts TRIM enabling won't affect USB2.0 devices, > and it's fairly clear the bottleneck is in USB, not microSD. Trim is enabled > for mmcsd0s2a, but sysctl vfs.ffs.dotrimcons=1 hasn't been invoked. I'll turn > it on later, to check for bad side effects, but there's no obvious reason to > think it'll help. Trim consolidation at the ufs layer might not have as much effect on mmcsd as it does on other devices. The mmcsd driver has always consolidated adjacent trim requests itself even when they arrive in the IO queue as a large number of small BIO_DELETE commands. It assembles blocks of adjacent deletes until they reach the size of a full erase block, then issue one erase command (I've never been convinced that doing so is necessary, to me the sd spec implies you can delete individual sectors). -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1535905375.9486.18.camel>