From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Libre-RISCV General Development <libre-riscv-dev@lists.libre-riscv.org>
Subject: Re: [libre-riscv-dev] spinlocks considered harmful
Date: Sat, 9 May 2020 08:51:48 +0100
Message-ID: <CAPweEDw8wNEQbpZ1Gv1-M2iQyR6K=DS+kJLsY5vXBEYSUPROww@mail.gmail.com> (raw)
In-Reply-To: <CAC2bXD5L6ZK-Vmb5b2C8X2=BcecybqFkFWjpNWcuMB=utuuNXw@mail.gmail.com>
On Sat, May 9, 2020 at 12:20 AM Jacob Lifshay <programmerjake@gmail.com> wrote:
> I ended up reporting a bug to PyO3 to not use spinlocks, the explanatory
> blog post I liked to is quite informative and I'd consider it recommended
> reading for anyone writing multi-threaded programs and/or using atomics:
>
> https://matklad.github.io/2020/01/02/spinlocks-considered-harmful.html
oh look. they're rediscovering systems programming and fundamental
systems design, because they're working in a high-level language and
haven't had the kind of training and experience that this extremely
well written article describes.
remember, jacob, i was one of the key architects on samba, which had
people working on it who absolutely had to know what they were doing.
HP told us back in 1997 that they were running 48,000 simultaneous
users across 19 separate HP/UX mini computers, each with NFS-mounts
onto 4 mainframes. so - remember this is on hardware from *1997* -
they had 3,000 simultaneous users per HP/UX minicomputer *and*
capacity to spare to do outgoing NFS traffic.
if samba had been designed using spinlocks for resource contention it
would have tanked at around 150-200 users per minicomputer.
l.
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
prev parent reply index
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 23:20 Jacob Lifshay
2020-05-09 7:51 ` Luke Kenneth Casson Leighton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPweEDw8wNEQbpZ1Gv1-M2iQyR6K=DS+kJLsY5vXBEYSUPROww@mail.gmail.com' \
--to=lkcl@lkcl.net \
--cc=libre-riscv-dev@lists.libre-riscv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Libre RISC-V Mailing list Archives (accessible via public-inbox)
Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev
Example config snippet for mirrors
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git