Article View: comp.lang.lisp
Article #80Re: read-file for sbcl
From: Madhu
Date: Sat, 28 Nov 2026 14:47
Date: Sat, 28 Nov 2026 14:47
21 lines
2312 bytes
2312 bytes
* 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. 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
Technical Details
Message-ID:
<m3se0lui6p.fsf@pison.robolove.meer.net>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Madhu <enometh@meer.net> Newsgroups: comp.lang.lisp Subject: Re: read-file for sbcl Date: Sat, 28 Nov 2026 20:17:10 +0530 Organization: Motzarella Lines: 21 Message-ID: <m3se0lui6p.fsf@pison.robolove.meer.net> 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> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sat, 28 Nov 2026 14:47:12 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2794879"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RAoTivMvdNrN2JhmmcZKz3+RJrEWfLUU="; posting-host="f6cfed2cdc638a4d9a14af95a0877e27" Cancel-Lock: sha1:7Z56KG0KiJbWN2PrQX2LB1qo1fY= sha1:IVM5JL/l9IUbNZN9yiT5HWPaEtw= sha256:D6s0reXynYzpPsBJ38GFVkeT1LyN9T3DYcsM7Af6DUU= sha1:ZunwPjgHAUxyWlsAKjx49lVwB2g= sha256:nuCGVdCDBz+QrBxHrZIeV3C2nRCbbk/isLVvfnfw+JA=