Page MenuHomeFreeBSD
Feed Advanced Search

Jun 6 2024

rlibby requested review of D45517: virstor: write large maps in chunks during label.
Jun 6 2024, 5:45 PM
rlibby committed rG1b13e36fcc00: vm_page_insert: use pctrie combined insert/lookup (authored by rlibby).
vm_page_insert: use pctrie combined insert/lookup
Jun 6 2024, 5:36 PM
rlibby committed rG7658d1532caa: vm_radix: define vm_radix_insert_lookup_lt and use in vm_page_rename (authored by rlibby).
vm_radix: define vm_radix_insert_lookup_lt and use in vm_page_rename
Jun 6 2024, 5:36 PM
rlibby closed D45486: vm_page_insert: use pctrie combined insert/lookup.
Jun 6 2024, 5:36 PM
rlibby closed D45396: vm_radix: define vm_radix_insert_lookup_lt and use in vm_page_rename.
Jun 6 2024, 5:36 PM
rlibby updated subscribers of D45510: vm_radix: offer insert with le lookup and fast replacement.

I think @markj may be interested too.

Jun 6 2024, 5:09 PM
rlibby added a comment to D45510: vm_radix: offer insert with le lookup and fast replacement.

Here's a brain dump of what I had been thinking about a possible iterator, which is not very refined.

Jun 6 2024, 5:04 PM
rlibby added a comment to D45510: vm_radix: offer insert with le lookup and fast replacement.

So this supports a split insert/lookup, correct? Like the idea is that it lets us do something with the previous entry before we complete the insert?

Jun 6 2024, 4:55 PM
rlibby closed D45395: getblk: reduce time under bufobj lock.
Jun 6 2024, 3:45 AM
rlibby committed rG780666c09bf9: getblk: reduce time under bufobj lock (authored by rlibby).
getblk: reduce time under bufobj lock
Jun 6 2024, 3:45 AM
rlibby closed D45394: pctrie: add combined insert/lookup operations.
Jun 6 2024, 3:44 AM
rlibby committed rGbbf81f46297f: pctrie: add combined insert/lookup operations (authored by rlibby).
pctrie: add combined insert/lookup operations
Jun 6 2024, 3:44 AM

Jun 5 2024

rlibby added a comment to D45486: vm_page_insert: use pctrie combined insert/lookup.
In D45486#1038012, @alc wrote:

In principle, this is fine, but in practice. we mostly call vm_page_insert_after(). So, the impact will be limited. That said, I'm still excited by where I think this is headed.

Jun 5 2024, 6:40 PM
rlibby updated the diff for D45486: vm_page_insert: use pctrie combined insert/lookup.

markj feedback: predict success

Jun 5 2024, 5:20 PM
rlibby added inline comments to D45486: vm_page_insert: use pctrie combined insert/lookup.
Jun 5 2024, 5:10 PM
rlibby updated the diff for D45486: vm_page_insert: use pctrie combined insert/lookup.

Mark vm_page_insert_lookup as __always_inline, and reword the comment.

Jun 5 2024, 4:14 PM
rlibby added inline comments to D45394: pctrie: add combined insert/lookup operations.
Jun 5 2024, 3:53 PM
rlibby updated the diff for D45486: vm_page_insert: use pctrie combined insert/lookup.

markj feedback: comment typo

Jun 5 2024, 2:39 PM
rlibby updated the diff for D45394: pctrie: add combined insert/lookup operations.

markj feedback: reword comment, remove unneeded NULL check

Jun 5 2024, 6:14 AM
rlibby added inline comments to D45395: getblk: reduce time under bufobj lock.
Jun 5 2024, 2:25 AM
rlibby added inline comments to D45394: pctrie: add combined insert/lookup operations.
Jun 5 2024, 2:19 AM
rlibby added inline comments to D45486: vm_page_insert: use pctrie combined insert/lookup.
Jun 5 2024, 2:02 AM

Jun 4 2024

rlibby requested review of D45486: vm_page_insert: use pctrie combined insert/lookup.
Jun 4 2024, 7:38 PM
rlibby added a comment to D45396: vm_radix: define vm_radix_insert_lookup_lt and use in vm_page_rename.

I guess vm_page_insert() could be improved similarly, but that's more work.

Jun 4 2024, 3:13 PM

Jun 3 2024

rlibby committed rG3ca6bf792924: db_show_buffer: minor cleanup (authored by rlibby).
db_show_buffer: minor cleanup
Jun 3 2024, 6:48 PM
rlibby committed rG7f1012ff7c8b: pctrie: predict successful allocation (authored by rlibby).
pctrie: predict successful allocation
Jun 3 2024, 6:48 PM
rlibby closed D45407: pctrie: predict successful allocation.
Jun 3 2024, 6:48 PM
rlibby closed D45442: db_show_buffer: minor cleanup.
Jun 3 2024, 6:48 PM

Jun 1 2024

rlibby updated the diff for D45395: getblk: reduce time under bufobj lock.

dougm feedback: kassert readability

Jun 1 2024, 6:31 PM
rlibby added inline comments to D45395: getblk: reduce time under bufobj lock.
Jun 1 2024, 6:19 PM
rlibby requested review of D45442: db_show_buffer: minor cleanup.
Jun 1 2024, 4:24 PM
rlibby added inline comments to D45395: getblk: reduce time under bufobj lock.
Jun 1 2024, 4:19 PM
rlibby updated the diff for D45395: getblk: reduce time under bufobj lock.

dougm feedback: simplify error paths

Jun 1 2024, 4:15 PM

May 30 2024

rlibby requested review of D45407: pctrie: predict successful allocation.
May 30 2024, 4:07 AM

May 29 2024

rlibby added inline comments to D45396: vm_radix: define vm_radix_insert_lookup_lt and use in vm_page_rename.
May 29 2024, 7:35 PM
rlibby added inline comments to D45394: pctrie: add combined insert/lookup operations.
May 29 2024, 7:29 PM
rlibby updated the diff for D45396: vm_radix: define vm_radix_insert_lookup_lt and use in vm_page_rename.

kib style feedback

May 29 2024, 6:16 PM
rlibby updated the diff for D45395: getblk: reduce time under bufobj lock.

kib feedback on style and __result_use_check

May 29 2024, 6:15 PM
rlibby updated the diff for D45394: pctrie: add combined insert/lookup operations.

kib feedback on KASSERT style, and fix a comment typo

May 29 2024, 6:13 PM
rlibby added inline comments to D45395: getblk: reduce time under bufobj lock.
May 29 2024, 4:36 PM
rlibby added inline comments to D45395: getblk: reduce time under bufobj lock.
May 29 2024, 4:27 PM

May 28 2024

rlibby requested review of D45396: vm_radix: define vm_radix_insert_lookup_lt and use in vm_page_rename.
May 28 2024, 7:39 PM
rlibby requested review of D45395: getblk: reduce time under bufobj lock.
May 28 2024, 7:39 PM
rlibby requested review of D45394: pctrie: add combined insert/lookup operations.
May 28 2024, 7:39 PM

May 27 2024

rlibby added a comment to D43775: tests/unix_seqpacket: provide random data pumping test with MSG_EOR.

Filed https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279354

May 27 2024, 6:38 PM

May 26 2024

rlibby committed rG9c975a0d90f1: pbuf_ctor(): Stop using LK_NOWAIT, use LK_NOWITNESS (authored by rlibby).
pbuf_ctor(): Stop using LK_NOWAIT, use LK_NOWITNESS
May 26 2024, 5:37 PM
rlibby committed rG6bd3f23a2a82: tmpfs_node_init: use MTX_NEW on lock from uninitialized memory (authored by rlibby).
tmpfs_node_init: use MTX_NEW on lock from uninitialized memory
May 26 2024, 5:37 PM
rlibby closed D45360: pbuf_ctor(): Stop using LK_NOWAIT, use LK_NOWITNESS.
May 26 2024, 5:37 PM
rlibby closed D45364: tmpfs_node_init: use MTX_NEW on lock from uninitialized memory.
May 26 2024, 5:37 PM
rlibby added a comment to D45368: uma: Fix improper uses of UMA_MD_SMALL_ALLOC.

What about arc_available_memory() in sys/contrib/openzfs/module/os/freebsd/zfs/arc_os.c? Isn't that still broken?

May 26 2024, 5:13 PM
rlibby added a comment to D45360: pbuf_ctor(): Stop using LK_NOWAIT, use LK_NOWITNESS.
In D45360#1034889, @kib wrote:

LK_NOWAIT is the common pattern for this situation. Besides buffers, another immediate example is the vm_map lock in vmspace_fork() (look for the new_map locking and comment).

May 26 2024, 12:58 AM
rlibby added inline comments to D45288: vm_pageout_scan_inactive: take a lock break.
May 26 2024, 12:21 AM

May 25 2024

rlibby requested review of D45364: tmpfs_node_init: use MTX_NEW on lock from uninitialized memory.
May 25 2024, 4:31 PM
rlibby requested review of D45360: pbuf_ctor(): Stop using LK_NOWAIT, use LK_NOWITNESS.
May 25 2024, 7:45 AM

May 24 2024

rlibby committed rGa216e311a70c: vm_pageout_scan_inactive: take a lock break (authored by rlibby).
vm_pageout_scan_inactive: take a lock break
May 24 2024, 3:56 PM
rlibby closed D45288: vm_pageout_scan_inactive: take a lock break.
May 24 2024, 3:56 PM
rlibby added inline comments to D45288: vm_pageout_scan_inactive: take a lock break.
May 24 2024, 6:44 AM

May 22 2024

rlibby updated the diff for D45288: vm_pageout_scan_inactive: take a lock break.

alc feedback: const and style fixups

May 22 2024, 6:48 PM
rlibby added inline comments to D45288: vm_pageout_scan_inactive: take a lock break.
May 22 2024, 6:44 PM
rlibby updated the diff for D45288: vm_pageout_scan_inactive: take a lock break.

markj feedback: elaborate on comment and provide vm_batchqueue_empty()

May 22 2024, 5:17 PM
rlibby added inline comments to D45288: vm_pageout_scan_inactive: take a lock break.
May 22 2024, 4:48 PM
rlibby updated the summary of D45288: vm_pageout_scan_inactive: take a lock break.
May 22 2024, 4:27 PM
rlibby updated the diff for D45288: vm_pageout_scan_inactive: take a lock break.

Implement markj's suggestion

May 22 2024, 4:24 PM
rlibby added inline comments to D45288: vm_pageout_scan_inactive: take a lock break.
May 22 2024, 3:44 PM
rlibby committed rGbea2bf458d2c: tpm_if.m: declare bus addresses as bus_size_t not bus_addr_t (authored by rlibby).
tpm_if.m: declare bus addresses as bus_size_t not bus_addr_t
May 22 2024, 2:56 PM
rlibby closed D45287: tpm_if.m: declare bus addresses as bus_size_t not bus_addr_t.
May 22 2024, 2:56 PM

May 21 2024

rlibby added inline comments to D45288: vm_pageout_scan_inactive: take a lock break.
May 21 2024, 7:50 PM
rlibby updated the summary of D45288: vm_pageout_scan_inactive: take a lock break.
May 21 2024, 7:39 PM
rlibby requested review of D45288: vm_pageout_scan_inactive: take a lock break.
May 21 2024, 7:32 PM
rlibby committed rGa332ba32d4a2: getblk: fail faster with GB_LOCK_NOWAIT (authored by rlibby).
getblk: fail faster with GB_LOCK_NOWAIT
May 21 2024, 6:17 PM
rlibby committed rGbd56aad33c25: buf: define and use BUF_DISOWNED (authored by rlibby).
buf: define and use BUF_DISOWNED
May 21 2024, 6:17 PM
rlibby committed rGb92cd6b2944a: lockmgr: make lockmgr_disowned public and use it (authored by rlibby).
lockmgr: make lockmgr_disowned public and use it
May 21 2024, 6:17 PM
rlibby closed D45245: getblk: fail faster with GB_LOCK_NOWAIT.
May 21 2024, 6:17 PM
rlibby closed D45249: buf: define and use BUF_DISOWNED.
May 21 2024, 6:17 PM
rlibby closed D45248: lockmgr: make lockmgr_disowned public and use it.
May 21 2024, 6:17 PM
rlibby added a comment to D45287: tpm_if.m: declare bus addresses as bus_size_t not bus_addr_t.

The only time this makes a difference is if the sizes of bus_addr_t and bus_size_t are different, and I don't have any test hardware where that's the case and I can test TPM. (Only hardware I have where that's the case is ppc Book-E, but that doesn't have a TPM).

May 21 2024, 5:47 PM
rlibby updated the test plan for D45287: tpm_if.m: declare bus addresses as bus_size_t not bus_addr_t.
May 21 2024, 5:05 PM
rlibby requested review of D45287: tpm_if.m: declare bus addresses as bus_size_t not bus_addr_t.
May 21 2024, 5:04 PM

May 20 2024

rlibby added inline comments to D45245: getblk: fail faster with GB_LOCK_NOWAIT.
May 20 2024, 9:09 PM
rlibby updated the diff for D45245: getblk: fail faster with GB_LOCK_NOWAIT.
  • getblk: fail faster with GB_LOCK_NOWAIT
  • GB_LOCK_NOWAIT markj feedback
May 20 2024, 7:34 PM
rlibby added a comment to D45245: getblk: fail faster with GB_LOCK_NOWAIT.

My only comment is that, reading the code, it's not immediately obvious why we give up right away when failing to acquire the buf lock, but not when we successfully acquire the buf lock and discover that the buffer identity has changed.

May 20 2024, 7:00 PM
rlibby committed rGda590a3e18cb: lock.9: LK_TIMELOCK is a lockmgr flag, not lockinit (authored by rlibby).
lock.9: LK_TIMELOCK is a lockmgr flag, not lockinit
May 20 2024, 4:51 PM
rlibby closed D45246: lock.9: LK_TIMELOCK is a lockmgr flag, not lockinit.
May 20 2024, 4:51 PM
rlibby added a comment to D43775: tests/unix_seqpacket: provide random data pumping test with MSG_EOR.

@glebius I ran into this while running the kern tests. This new test is failing reliably for me, and it looks like in CI too, e.g. this run on April 9:
https://ci.freebsd.org/job/FreeBSD-main-amd64-test/25066/testReport/sys.kern/unix_seqpacket_test/random_eor_and_waitall/

May 20 2024, 6:45 AM
rlibby added a comment to D45245: getblk: fail faster with GB_LOCK_NOWAIT.
In D45245#1032333, @kib wrote:

I think that this is technically correct but unfair. Intent was that failed unlocked buffer lookup should not change the behavior, in particular, allowing the normal lookup quirks to proceed.

May 20 2024, 3:41 AM

May 19 2024

rlibby requested review of D45249: buf: define and use BUF_DISOWNED.
May 19 2024, 1:59 AM
rlibby requested review of D45248: lockmgr: make lockmgr_disowned public and use it.
May 19 2024, 1:59 AM
rlibby requested review of D45246: lock.9: LK_TIMELOCK is a lockmgr flag, not lockinit.
May 19 2024, 1:48 AM
rlibby requested review of D45245: getblk: fail faster with GB_LOCK_NOWAIT.
May 19 2024, 1:44 AM

Oct 12 2022

rlibby committed R9:27a24c43326c: Update PGP key for rlibby@ (authored by rlibby).
Update PGP key for rlibby@
Oct 12 2022, 5:19 PM

Jul 18 2022

rlibby accepted D35845: bge: tell debugnet there are 2 rx rings, not 1,024.
Jul 18 2022, 7:31 PM

Jul 7 2022

rlibby accepted D35738: uma: Use a taskqueue to execute uma_timeout().
Jul 7 2022, 8:12 PM

Jun 14 2022

rlibby accepted D35473: kernel GDB: do not reboot the target.

LGTM. I don't get why we don't send PC and the watch stop reason in the '?' case but it probably doesn't matter and it looks like a faithful refactor.

Jun 14 2022, 5:43 PM

Mar 8 2022

rlibby added a comment to D34484: savecore(8) reporting when insufficient disk space.

I don't have an objection to changing the LOG_WARNING to LOG_ERR, but I'm confused about what this actually changes. I looked at man 3 syslog and vsyslog1() to see if we printed to stderr by default for LOG_ERR but I'm not seeing that. So, what does this actually do?

Mar 8 2022, 8:46 PM

Feb 1 2022

rlibby accepted D34122: <sys/bitstring.h>: Cast _BITSTR_BITS to int in a ternary operator..
Feb 1 2022, 1:46 AM

Oct 21 2021

rlibby accepted D32589: dmar: Don't try to reserve PCI regions for non-existing devices.

A NULL check seems like a clear improvement over a crash.

Oct 21 2021, 5:04 PM

Oct 13 2021

rlibby accepted D32472: bitset: Reimplement BIT_FOREACH_IS(SET|CLR).
Oct 13 2021, 4:43 PM
rlibby accepted D32472: bitset: Reimplement BIT_FOREACH_IS(SET|CLR).
Oct 13 2021, 1:41 AM
rlibby accepted D32472: bitset: Reimplement BIT_FOREACH_IS(SET|CLR).
Oct 13 2021, 1:00 AM

Sep 23 2021

rlibby added inline comments to D32028: bitset(9): Introduce BIT_FOREACH_SET and BIT_FOREACH_CLR.
Sep 23 2021, 1:23 AM