🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.lisp
Article #88

Re: read-file for sbcl

#88
From: steve g
Date: Sun, 29 Nov 2026 23:41
49 lines
3730 bytes
Alexander Schreiber <als@usenet.thangorodrim.de> writes:

> Madhu <enometh@meer.net> wrote:
>>
>> * tfb <11eeio5$2i30h$1@dont-email.me> :
>> Wrote on Sat, 28 Nov 2026 12:51:17 -0000 (UTC):
>>> Alexander Schreiber <als@usenet.thangorodrim.de> wrote:
>>>> Yeah, it has to read an entire block from storage (512/4096 bytes depending
>>>> on details). All because the inode on ext4 by default is an absolutely massive
>>>> 256 bytes. And that assumes fully cold caches.
>>> Right.  And *you're about to read the inode anyway* since you're about to
>>> read the file.  So the marginal cost of stat() is utterly negligible.  Oh,
>>> and by the way, to get to the point where you can call lseek() *you've also
>>> read the inode*!
>>
>> I haven't had problems since I got nvme, but my earlier laptop I had a 1
>> TB 3.5' "Western Digital Black (SMR)" stat times were an issue and I had
>> to patch programs that eagerly `stat'ed stuff.
>
> SMR is the problem here. Specifically, device-managed SMR where the host
> OS is not aware of the cheerfully-breaking-various-assumptions hilarity
> going on on the other side of the disk interface.
>
>> zsh startup on a cold cache takes 15 seconds (.2 sec on a mirror "zfs
>> filesystem" with nvme) and directories with say 40,000 files take
>> minutes to dired. tracing performace at the syscall level didn't show
>> anything, i suspect it's some firmware black magic that's delaying
>> things which I don't know how to measure
>
> I suspect a big part here might be implicit writes caused by reads
> (atime updates)


THANK YOU! like duh. `` I need nano-second timestamps". fucking children.


> - those normally tiny (one block) writes would be
> massively amplified inside the drive due to the need to rewrite an
> entire block (with sizes of e.g. 256M) due to the device-managed SMR.
> And since the implicit writes are triggered by the kernel (well, FS
> driver) and the write amplification happens inside the drive, all you'd
> see at the syscall border are some weird massive latency spikes.

> Device-managed SMR is just bad. Host-managed SMR however is fine when
> used with a suitable storage system (e.g. the drive is backing storage
> for HDFS with 256M block size).
>
> Kind regards,
>            Alex.
Technical Details
Message-ID: <87zeurciiq.fsf@gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-3.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
References: <87ld6gl8ah.fsf@gmail.com> <m3wlq0ut1c.fsf@pison.robolove.meer.net> <87ld6dhbsc.fsf@gmail.com> <slrn11glf2d.1hn9k.als@mordor.angband.thangorodrim.de> <11eeio5$2i30h$1@dont-email.me> <m3se0lui6p.fsf@pison.robolove.meer.net> <slrn11gm21m.1k636.als@mordor.angband.thangorodrim.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-3.nntp.ord.giganews.com!nntp.giganews.com!local-3.nntp.ord.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 29 Nov 2026 23:41:49 +0000
From: steve g <Sgonedes1977@gmail.com>
Newsgroups: comp.lang.lisp
Subject: Re: read-file for sbcl
References: <87ld6gl8ah.fsf@gmail.com>
	<m3wlq0ut1c.fsf@pison.robolove.meer.net> <87ld6dhbsc.fsf@gmail.com>
	<slrn11glf2d.1hn9k.als@mordor.angband.thangorodrim.de>
	<11eeio5$2i30h$1@dont-email.me> <m3se0lui6p.fsf@pison.robolove.meer.net>
	<slrn11gm21m.1k636.als@mordor.angband.thangorodrim.de>
Date: Sun, 29 Nov 2026 18:41:49 -0500
Message-ID: <87zeurciiq.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:0sWCrJBLs4WoNyZ1HMVjmmjn9EA=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 49
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-8pcksIbLBPSJYBGKRAc2Tm90N31YLweFnfHhhHNJ211KRg+8r52GmFsPP92taykvRuy2iNL/z9ld2Jy!4gFHmNwANf1bsjru4vhngrwBOcKEzn316o6OttCPbOrfTak=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40