From nobody Wed Jul 31 03:40:44 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WYdD4642mz5SWv3 for ; Wed, 31 Jul 2024 03:40:52 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYdD45Yqyz4QhL; Wed, 31 Jul 2024 03:40:52 +0000 (UTC) (envelope-from zlei@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722397252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HncGP1NnzPtKYHLlIaL4lUUoT1wLBtrBTPXKahhkQ2g=; b=x2l1ZdkwRsB908wN5ufZsh0v1YGDdlIX0DFUvvUiWZHbgDNgqTDCSeVMLCGfk6eaRWr7hX fdT8ix/gwWFDDXf271sgtks2Uy0ZY4Ks05wjLe0xpKivIyt+1wXd8RFkW91TiihRe4ufe/ WyH/tj9tAW/M4yC6DGp3JiD76kkRXHE2RkmosMTqnVc+wt0j51RCjQ5DNW71/0yTr7vf47 P0CUwudEtq1QC1xCYfDURC9KPkQLOCASt/lr8Vtdyh3RAalX5aLqQrws/dmZjLCFQ+wg/H al3hIZYXVQFbCo1v2Ma9jCeCa6+1KLbZdCrtX7PKhFioonMsLcLJpxPEfXAdSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722397252; a=rsa-sha256; cv=none; b=Z9Kkx6+hBSNReovj+8Cyhtizy0jAqoCbcmPwbyEOfXrZaIp2yC3WRFHcrjf9BtQjKR3HyA srjiIyuzqkDxbGRTj4PVAgkidhdDBDLQqBRdMbN7NgiT+P5K7wExuH9LZWiXlKENh6fGE9 EwzZ4bulCdVmdX4HYJ2gT9wFgWXEqjeEfFDxIZ2uc+yAhfdZOSnirpb/CO2Dtc/Iz+fa2J EsgG0EXoyDJH4zOpUHili7yKWb8yxquTRLzS+RSj+p16bt9ZktZUwdiE5ZTsvfhl6zy2Dj JXU8aEFA2CMZbuwYVdqJdcmgmK096Nit0LvtrdForWjT1ZZQ26DYwhDqiM3Lcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722397252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HncGP1NnzPtKYHLlIaL4lUUoT1wLBtrBTPXKahhkQ2g=; b=NFTn191DsQyLwcNh/1693MKnp3bEbW3mGmo+DBOoW4HqWUQfF45XiQgY/LA5blMBtR8WNi b5fZ9LoGWbZdpUkbC3wffNk/cOSrTryuhsTB89B+GRYii+QfO/is/9MtP0XzqwSs4GyA/t 1uYWMsSoTR90B56EMx7HDby9cZOlijHpgOGvpRnNEGo+qRCUB/cCR4G+ugPY9Jvd4XYcc6 UxCnK09R6xbb7IeHoWSCAW0+HxzkOFP6qFhsRy9SWItNpYAXtwICxqMbKZu3JDbJ8swByY EMYKQK+/Y6t2Ts6UmWGXN0Ula9LDjVXOd1CQkr7bS11VSk+GfnzizPhQRp961Q== Received: from smtpclient.apple (ns1.oxydns.net [45.32.91.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: zlei/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4WYdD32z7wzj4v; Wed, 31 Jul 2024 03:40:51 +0000 (UTC) (envelope-from zlei@FreeBSD.org) Content-Type: text/plain; charset=utf-8 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.8\)) Subject: Re: filemon From: Zhenlei Huang In-Reply-To: <86jzh26793.fsf@ltc.des.dev> Date: Wed, 31 Jul 2024 11:40:44 +0800 Cc: Miroslav Lachman <000.fbsd@quip.cz>, Warner Losh , FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: References: <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> <86jzh26793.fsf@ltc.des.dev> To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= X-Mailer: Apple Mail (2.3696.120.41.1.8) > On Jul 31, 2024, at 2:54 AM, Dag-Erling Sm=C3=B8rgrav = wrote: >=20 > Miroslav Lachman <000.fbsd@quip.cz> writes: >> I'm a bit confused. If I understand it right, you say loader.conf >> causes less memory fragmentation, but DES said "it still increases = low >> memory fragmentation". So what is true? And is this something to = watch >> out for, or is memory fragmentation not such a big deal? >=20 > I used the wrong term. The loader loads the kernel and modules into a > particular region of memory, while modules loaded after boot can go > anywhere. Furthermore, modules loaded by the loader cannot be = unloaded. This is not accurate. Indeed the pre-loaded ( loaded by loader ) modules = can be unloaded by kldunload(8). > So loading modules pre-boot does not increase fragmentation, but it = uses > up memory from a much more limited pool than loading them later. >=20 > DES > --=20 > Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org >=20