Page MenuHomeFreeBSD
Feed Advanced Search

Sat, Jan 11

markj committed rG159d29d39482: clock: Use .balign to align ticksl (authored by markj).
clock: Use .balign to align ticksl
Sat, Jan 11, 5:47 PM
markj closed D48430: clock: Use .balign to align ticksl.
Sat, Jan 11, 5:46 PM
markj added a comment to D48337: vm_pageout: Scan inactive dirty pages less aggressively.
In D48337#1104688, @kib wrote:

As I understand, the patch causes the inactive scan to stop even if there is still page_shortage (>0), hoping that laundry would keep up and do the necessary cleaning. Suppose that we have the mix of the anon and file dirty pages, and, for instance, no swap (or files are backed by slow device). Then it is possible that for the long time, despite queuing the pages for laundry, they cannot be cleaned, so the page_shortage is not going to go away.
Wouldn't it be needed for such patch to ensure that either launder thread make progress, or inactive scan continues? I understand that scan would be kicked again, but I mean that laundry should kick it as well if it cannot get rid of page_shortage.

Sat, Jan 11, 5:21 PM
markj updated the test plan for D48430: clock: Use .balign to align ticksl.
Sat, Jan 11, 5:01 PM
markj added inline comments to D48420: clock: Simplify subr_ticks and rename.
Sat, Jan 11, 5:00 PM
markj requested review of D48430: clock: Use .balign to align ticksl.
Sat, Jan 11, 5:00 PM
markj accepted D48424: snd_uaudio: Remove undefined functions.
Sat, Jan 11, 3:17 PM
markj accepted D48384: acpi_powerres: D3cold support and `acpi_d_state_to_str`.

This looks okay to me, but I'm not very familiar with this part of the kernel.

Sat, Jan 11, 3:14 PM
markj added a comment to D48361: x86: Short-circuit ipi_all_but_self() on UP systems.

I would have liked to see a comment left in the file. I suspect someone down the line will wonder why someone bothered to optimize this case. This might help uniprocessor VMs, but multiprocessor VMs are also very common. While a single branch is cheap, this still means a tiny performance loss if you've got more than one.

Sat, Jan 11, 3:07 PM
markj committed rGb2b974f7ef4c: clock: Simplify subr_ticks and rename (authored by markj).
clock: Simplify subr_ticks and rename
Sat, Jan 11, 12:01 AM
markj closed D48420: clock: Simplify subr_ticks and rename.
Sat, Jan 11, 12:01 AM

Fri, Jan 10

markj accepted D48422: bsnmpwalk: Fix crash on invalid data.
Fri, Jan 10, 8:44 PM
markj requested review of D48423: devd: Avoid setting devctl_queue when stopping devd.
Fri, Jan 10, 8:37 PM
markj updated the diff for D48420: clock: Simplify subr_ticks and rename.

Remove the .depend cleanup hack, fix the TICKS_OFFSET definition, move to .bss.

Fri, Jan 10, 5:37 PM
markj requested review of D48420: clock: Simplify subr_ticks and rename.
Fri, Jan 10, 5:25 PM
markj committed rG6b82130e6c9a: clock: Add a long ticks variable, ticksl (authored by markj).
clock: Add a long ticks variable, ticksl
Fri, Jan 10, 4:01 PM
markj closed D48383: clock: Add a long ticks variable.
Fri, Jan 10, 4:01 PM
markj added inline comments to D48330: sound: Unit test the pcm sample read and write macros..
Fri, Jan 10, 2:30 PM
markj added inline comments to D48384: acpi_powerres: D3cold support and `acpi_d_state_to_str`.
Fri, Jan 10, 2:19 PM
markj accepted D48411: stand/usb: Quiet warnings so this builds again.

I have no real idea how to test this code either.

Fri, Jan 10, 2:02 PM
markj accepted D48410: stand/kshim: Implement bus_detach_children.
Fri, Jan 10, 2:01 PM
markj accepted D48412: stand/kshim: Replace devclass_equal with calls to strcmp.
Fri, Jan 10, 1:56 PM
markj accepted D48409: stand/usb: Update for devclass being removed from DRIVER_MODULE.
Fri, Jan 10, 1:54 PM
markj added inline comments to D45434: pci_host_generic: Permit multiple bridges to share the same I/O window.
Fri, Jan 10, 1:47 PM

Thu, Jan 9

markj updated the diff for D48383: clock: Add a long ticks variable.

Adjust comments.

Thu, Jan 9, 6:49 PM
markj added a comment to D48283: ithread: Allow some ithreads to sleep.
In D48283#1103786, @jhb wrote:

Why not use a taskqueue? That is what every other driver that needs this functionality does.

Thu, Jan 9, 5:06 PM
markj committed rG55b343f4f9bc: vm_pageout: Add a chicken switch for multithreaded PQ_INACTIVE scanning (authored by markj).
vm_pageout: Add a chicken switch for multithreaded PQ_INACTIVE scanning
Thu, Jan 9, 2:57 PM
markj committed rGfe1165df4b77: vm_pageout: Make vmd_oom a bool (authored by markj).
vm_pageout: Make vmd_oom a bool
Thu, Jan 9, 2:56 PM
markj closed D48377: vm_pageout: Add a chicken switch for multithreaded PQ_INACTIVE scanning.
Thu, Jan 9, 2:56 PM
markj closed D48376: vm_pageout: Make vmd_oom a bool.
Thu, Jan 9, 2:56 PM
markj committed rG4a46ece6c6a9: vmm: Fix error handling in vmm_handler() (authored by markj).
vmm: Fix error handling in vmm_handler()
Thu, Jan 9, 2:53 PM
markj closed D48269: vmm: Fix error handling in vmm_handler().
Thu, Jan 9, 2:53 PM
markj updated the diff for D48383: clock: Add a long ticks variable.

Apply reviewer suggestions, move symbol definitions to sys/kern/subr_ticks.s.

Thu, Jan 9, 2:43 PM

Wed, Jan 8

markj updated the diff for D48383: clock: Add a long ticks variable.

Restore the initialization of ticksl on 64-bit platforms. It's still useful for
testing the case where some upper bits are non-zero.

Wed, Jan 8, 11:58 PM
markj updated the diff for D48383: clock: Add a long ticks variable.

Add a header to define ticks. I am happy to put it in an existing
header but I'm not sure which one would be suitable.

Wed, Jan 8, 11:54 PM
markj updated the diff for D48383: clock: Add a long ticks variable.

Reorder asm directives a bit.

Wed, Jan 8, 11:26 PM
markj updated the diff for D48383: clock: Add a long ticks variable.

Update tc_ticktock() as well. It's not necessary, but this way
we avoid some silent truncation that might confuse readers.

Wed, Jan 8, 11:13 PM
markj requested review of D48383: clock: Add a long ticks variable.
Wed, Jan 8, 11:06 PM

Tue, Jan 7

markj added inline comments to D48377: vm_pageout: Add a chicken switch for multithreaded PQ_INACTIVE scanning.
Tue, Jan 7, 7:51 PM
markj requested review of D48377: vm_pageout: Add a chicken switch for multithreaded PQ_INACTIVE scanning.
Tue, Jan 7, 7:25 PM
markj requested review of D48376: vm_pageout: Make vmd_oom a bool.
Tue, Jan 7, 7:25 PM
markj updated the diff for D48337: vm_pageout: Scan inactive dirty pages less aggressively.

Permit the inactive weight to have a value of 0, which effectively
restores the old behaviour.

Tue, Jan 7, 6:41 PM
markj committed rG254a2b767f9a: x86: Short-circuit ipi_all_but_self() on UP systems (authored by markj).
x86: Short-circuit ipi_all_but_self() on UP systems
Tue, Jan 7, 6:14 PM
markj closed D48361: x86: Short-circuit ipi_all_but_self() on UP systems.
Tue, Jan 7, 6:14 PM
markj added a comment to D48361: x86: Short-circuit ipi_all_but_self() on UP systems.
In D48361#1102810, @kib wrote:

The real fix is to remove i386 kernel, of course.

Tue, Jan 7, 4:30 PM
markj requested review of D48361: x86: Short-circuit ipi_all_but_self() on UP systems.
Tue, Jan 7, 4:16 PM
markj added a comment to D48007: vm_object: drop memq field.

Doug, how would you like to proceed with the patch? Since quite a few pieces of it are independent, I imagine they can be reviewed and peeled off one by one, especially in areas that aren't performance-critical.

Tue, Jan 7, 2:58 PM
markj accepted D48331: x86: tsc: more resilient cpuid parsing.
Tue, Jan 7, 2:39 PM
markj committed rG20a51e6073f4: bhyve: Implement the libslirp notify callback (authored by markj).
bhyve: Implement the libslirp notify callback
Tue, Jan 7, 2:35 PM
markj committed rGd3bdfa583044: bhyve: Use a non-blocking read in slirp_recv() (authored by markj).
bhyve: Use a non-blocking read in slirp_recv()
Tue, Jan 7, 2:35 PM
markj closed D48164: bhyve: Use a non-blocking read in slirp_recv().
Tue, Jan 7, 2:35 PM
markj closed D48192: bhyve: Implement the libslirp notify callback.
Tue, Jan 7, 2:35 PM
markj committed rG596ee234ef45: ktrace: Make -t t trace struct arrays as well as structs (authored by markj).
ktrace: Make -t t trace struct arrays as well as structs
Tue, Jan 7, 2:33 PM
markj committed rGce878284318e: makefs: Handle special file types when creating a zpool (authored by markj).
makefs: Handle special file types when creating a zpool
Tue, Jan 7, 2:33 PM
markj committed rG2be86b6cc168: makefs: Remove dead code in inode_type() (authored by markj).
makefs: Remove dead code in inode_type()
Tue, Jan 7, 2:33 PM
markj accepted D48332: open(2): allow O_PATH | O_CREAT.
Tue, Jan 7, 2:36 AM
markj closed D48344: rawip: Take the inpcb lock when appropriate in rip_ctloutput().
Tue, Jan 7, 2:26 AM
markj committed rGfd94571ccf0c: rawip: Take the inpcb lock when appropriate in rip_ctloutput() (authored by markj).
rawip: Take the inpcb lock when appropriate in rip_ctloutput()
Tue, Jan 7, 2:26 AM
markj committed rGc945c9ddca8d: amd64/vmm: Rename vm_get_vmspace() to vm_vmspace() (authored by markj).
amd64/vmm: Rename vm_get_vmspace() to vm_vmspace()
Tue, Jan 7, 2:20 AM
markj committed rGb09fe08ede8f: amd64/vmm: Remove vmm_mem_init() (authored by markj).
amd64/vmm: Remove vmm_mem_init()
Tue, Jan 7, 2:20 AM
markj committed rG19cb383dc03a: vmm.4: Update to mention non-amd64 platforms (authored by markj).
vmm.4: Update to mention non-amd64 platforms
Tue, Jan 7, 2:20 AM
markj closed D48268: amd64/vmm: Rename vm_get_vmspace() to vm_vmspace().
Tue, Jan 7, 2:20 AM
markj closed D48267: amd64/vmm: Remove vmm_mem_init().
Tue, Jan 7, 2:20 AM
markj closed D48263: vmm.4: Update to mention non-amd64 platforms.
Tue, Jan 7, 2:20 AM
markj committed rG215c8b79c498: riscv/vmm: Make vcpu sleep periods consistent with other platforms (authored by markj).
riscv/vmm: Make vcpu sleep periods consistent with other platforms
Tue, Jan 7, 2:20 AM
markj accepted D48332: open(2): allow O_PATH | O_CREAT.
Tue, Jan 7, 2:11 AM

Mon, Jan 6

markj committed rG378a2b155aaf: netipsec: Pass the right mbuf up (authored by markj).
netipsec: Pass the right mbuf up
Mon, Jan 6, 11:23 PM
markj committed rG872686b17e70: rc: Document rtadvd_flags (authored by markj).
rc: Document rtadvd_flags
Mon, Jan 6, 11:23 PM
markj committed rG5bf3ac7ae219: bsdinstall: Fix a typo in a comment (authored by markj).
bsdinstall: Fix a typo in a comment
Mon, Jan 6, 10:58 PM
markj committed rG8c75c15d43e4: jail: Avoid a potential use-after-free when destroying jails (authored by markj).
jail: Avoid a potential use-after-free when destroying jails
Mon, Jan 6, 10:57 PM
markj committed rG1c933f464fdb: unix: Be consistent about error handling for unconnected sockets (authored by markj).
unix: Be consistent about error handling for unconnected sockets
Mon, Jan 6, 10:57 PM
markj closed D47992: jail: Avoid a use-after-free when destroying jails.
Mon, Jan 6, 10:57 PM
markj committed rG9743e9efdf5f: SO_SPLICE tests: Fix a comment typo (authored by markj).
SO_SPLICE tests: Fix a comment typo
Mon, Jan 6, 9:04 PM
markj requested review of D48344: rawip: Take the inpcb lock when appropriate in rip_ctloutput().
Mon, Jan 6, 8:53 PM
markj added a comment to D48337: vm_pageout: Scan inactive dirty pages less aggressively.

This scan might process many gigabytes worth of pages in one go,
triggering VM object lock contention (on the DB cache file's VM object)
and consuming CPU, which can cause application latency spikes.

Mon, Jan 6, 7:23 PM
markj requested review of D48337: vm_pageout: Scan inactive dirty pages less aggressively.
Mon, Jan 6, 7:16 PM
markj added a comment to D47992: jail: Avoid a use-after-free when destroying jails.

@jamie , I wonder if you had any further comments on the patch?

Mon, Jan 6, 6:14 PM
markj added inline comments to D48331: x86: tsc: more resilient cpuid parsing.
Mon, Jan 6, 3:00 PM
markj added inline comments to D48007: vm_object: drop memq field.
Mon, Jan 6, 2:58 PM
markj accepted D44910: sys: Add cpu_update_pcb hook.
Mon, Jan 6, 2:26 PM
markj added a comment to D48330: sound: Unit test the pcm sample read and write macros..

This broadly looks good to me. I'd suggest having a comment somewhere which explains at a higher level what the tests are testing.

Mon, Jan 6, 2:20 PM
markj accepted D48331: x86: tsc: more resilient cpuid parsing.
In D48331#1102183, @imp wrote:

Why 5, but regardless of why, this is correct

Mon, Jan 6, 2:16 PM
markj accepted D48332: open(2): allow O_PATH | O_CREAT.

At least tests/sys/file/path_test.c:path_io will need to be updated.

Mon, Jan 6, 2:07 PM
markj updated the diff for D48269: vmm: Fix error handling in vmm_handler().

Remove the todo comment from riscv as well.

Mon, Jan 6, 2:00 PM

Sat, Jan 4

markj committed rG5ada29ab253d: inpcb: Fix the GENERIC-NODEBUG build (authored by markj).
inpcb: Fix the GENERIC-NODEBUG build
Sat, Jan 4, 2:09 PM
markj committed rGeecdd412ff5b: sysctl: Do not serialize requests when running as root (authored by markj).
sysctl: Do not serialize requests when running as root
Sat, Jan 4, 2:09 PM
markj committed rG4e793a6be4f9: inpcb: Factor out parts of in6_pcbbind() and in_pcbbind_setup() (authored by markj).
inpcb: Factor out parts of in6_pcbbind() and in_pcbbind_setup()
Sat, Jan 4, 2:08 PM
markj committed rGf1933eda43e6: jail: Handle jail removal in a dedicated thread (authored by markj).
jail: Handle jail removal in a dedicated thread
Sat, Jan 4, 2:08 PM
markj committed rGf9275f94f33b: riscv: Permit spurious faults in kernel mode (authored by markj).
riscv: Permit spurious faults in kernel mode
Sat, Jan 4, 2:08 PM

Fri, Jan 3

markj accepted D48205: libc/xdr: remove bogus lseek(2) for xdr streams.
Fri, Jan 3, 7:22 PM
markj accepted D48205: libc/xdr: remove bogus lseek(2) for xdr streams.

After staring at this for a while, I think it's right.

Fri, Jan 3, 7:11 PM
markj accepted D48309: netlink: fix size comparison.
Fri, Jan 3, 6:32 PM
markj added a comment to D48222: syslogd: Ensure that forwarded messages are sent from port 514.

I do not like how complicated this is getting, but the code all looks good.

Fri, Jan 3, 3:00 PM
markj accepted D48265: ipsec: improve integration with unmapped mbufs (on Tx).
Fri, Jan 3, 2:43 PM
markj committed rG526bd072b33e: syslogd: Fix resource leaks (authored by markj).
syslogd: Fix resource leaks
Fri, Jan 3, 1:54 AM
markj closed D48250: syslogd: Fix resource leaks.
Fri, Jan 3, 1:54 AM
markj committed rG1da99b479a74: syslogd tests: Permit starting syslogd with multiple -b options (authored by markj).
syslogd tests: Permit starting syslogd with multiple -b options
Fri, Jan 3, 1:54 AM
markj committed rG3fb2371efd13: syslogd tests: Use atf_check when sending SIGHUP to syslogd (authored by markj).
syslogd tests: Use atf_check when sending SIGHUP to syslogd
Fri, Jan 3, 1:54 AM

Thu, Jan 2

markj added a comment to D48241: usr.sbin/bhyve: add rendezvous layer for initialization step of bhyve.

I discover the original wait operation for gdb is not working now. I configure one vm with rfb and gdb. When gdb is with wait operation, the rfb does not have any output. But if the gdb is not waiting, the rfb will have output and gdb can attach to vm after boot up. I checkout to the main branch and it is also the case.

Thu, Jan 2, 6:55 PM
markj added inline comments to D48283: ithread: Allow some ithreads to sleep.
Thu, Jan 2, 5:32 PM