Sujet : Re: xxd -i vs DIY Was: C23 thoughts and opinions
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 03. Jun 2024, 09:02:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240603110248.000042cf@yahoo.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
On Mon, 3 Jun 2024 03:15:27 -0000 (UTC)
Lawrence D'Oliveiro <
ldo@nz.invalid> wrote:
On Thu, 30 May 2024 00:40:07 -0400, Paul wrote:
WSL uses containers, so of course it is slow.
WSL1 had a Linux “personality” on top of the NT kernel. So this was
emulation, not containers.
WSL2 uses Hyper-V to run Linux inside a VM. Again, not containers.
Linux has containers, which are based entirely on namespace isolation
(and cgroups for process management). These are all standard kernel
mechanisms, so there should be very little overhead in using them.
The word "container" has many meanings.
As far as host FS is concerned, guest FS is a one huge file. Despite
very different tech under the hood it equally applies both to WSL and
to WSL-2. Calling this file 'container' sounds like proper use of the
term.