Mike Gerdts · @mgerdts
91 followers · 165 posts · Server fosstodon.org

A while back while developing some code, I was sorely missing the ability to:

ASSERT(MUTEX_HELD(...))

The more I dug into the intersection of pthread mutexes and SPDK's concurrency model, the more I realized that there was a lot of room for improvement. This all led to SPDK's new spinlock implementation. A blog post with the details is at spdk.io/spdk_spinlock/2023/01/.

Much of the new behavior is inspired by mutexes.

#spdk #solaris

Last updated 3 years ago

Mike Gerdts · @mgerdts
64 followers · 102 posts · Server fosstodon.org

@parvXm There's some great work done here, which is sorely needed. Having been working on for a while, I wonder how much benefit there may be message passing such that IO for a particular dataset is always done by the same CPU thread or a very small group of them if that's too much work for one. I'd need to refresh my memory of internals, but I think this could reduce lock contention and perhaps eliminate some locks.

#spdk #zfs

Last updated 3 years ago

Mike Gerdts · @mgerdts
43 followers · 58 posts · Server fosstodon.org

@b0rk's threads about debuggers made me nostalgic for on Solaris and illumos. Currently I'm working on , which seems to be only supported on Linux and . Ever so hopeful, I tried:

[mgerdts@freebsd ~/spdk]$ mdb ./test/unit/lib/bdev/bdev.c/bdev_ut
mdb: no target ctor: No error: 0

😦

That's probably a pretty big hint that there is much to do to get the to level of functionality I'd want. Prolly better to write some gdb commands in python.

#mdb #spdk #freebsd #yakshaving

Last updated 3 years ago

Mike Gerdts · @mgerdts
43 followers · 58 posts · Server fosstodon.org

Huh. Somehow I’m first on the list of speakers at the SPDK Virtual Summit 2022. The pressure! If you are interested in this is the place to be in a couple weeks.

web.cvent.com/event/62e99886-2

#spdk

Last updated 3 years ago

Mike Gerdts · @mgerdts
43 followers · 58 posts · Server fosstodon.org

What better to than a look at what I think was my first contribution. I’d like to apologize now for the unbounded memory allocation bug I introduced. Oops.

github.com/php/php-src/commit/

Since then I’ve done a bunch of work (mostly ) followed by OS ( ) development and more recently various storage stuff ( ).

I love through the and other natural areas.

#introduction #fosstodon #foss #sysadmin #solaris #illumos #smartos #zfs #nvme #NVMeOF #roce #spdk #bluefield #DPU #smb #hiking #wilderness

Last updated 3 years ago