From 3b8cf4acf00e04ea9392f30b9d314718f642398c Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Tue, 27 Feb 2018 16:51:09 +0000 Subject: [PATCH] Give the 0th domain's page daemon thread a consistent name. Page daemon threads for other domains show up in ps(1) output as "pagedaemon/domN", so let that be the case for domain 0 as well. Submitted by: Kevin Bowling MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D14518 --- sys/vm/vm_pageout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index c52c115ceeab..4cd6972d240b 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1935,6 +1935,7 @@ vm_pageout(void) int i; swap_pager_swap_init(); + snprintf(curthread->td_name, sizeof(curthread->td_name), "dom0"); error = kthread_add(vm_pageout_laundry_worker, NULL, curproc, NULL, 0, 0, "laundry: dom0"); if (error != 0)