Deutsch English Français Italiano |
<v3jpgc$3pmi3$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: xxd -i vs DIY Was: C23 thoughts and opinions Date: Mon, 3 Jun 2024 08:57:16 +0200 Organization: A noiseless patient Spider Lines: 26 Message-ID: <v3jpgc$3pmi3$1@dont-email.me> References: <v2l828$18v7f$1@dont-email.me> <00297443-2fee-48d4-81a0-9ff6ae6481e4@gmail.com> <v2lji1$1bbcp$1@dont-email.me> <87msoh5uh6.fsf@nosuchdomain.example.com> <f08d2c9f-5c2e-495d-b0bd-3f71bd301432@gmail.com> <v2nbp4$1o9h6$1@dont-email.me> <v2ng4n$1p3o2$1@dont-email.me> <87y18047jk.fsf@nosuchdomain.example.com> <87msoe1xxo.fsf@nosuchdomain.example.com> <v2sh19$2rle2$2@dont-email.me> <87ikz11osy.fsf@nosuchdomain.example.com> <v2v59g$3cr0f$1@dont-email.me> <20240528144118.00002012@yahoo.com> <v34odg$kh7a$1@dont-email.me> <20240528185624.00002494@yahoo.com> <v359f1$nknu$1@dont-email.me> <20240528232315.00006a58@yahoo.com> <v35kkl$pis1$1@dont-email.me> <20240529012456.000003ce@yahoo.com> <v38vv9$1huh8$1@dont-email.me> <v3jcgf$3ntcs$4@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 03 Jun 2024 08:57:17 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9ed1b8381cdac1c9a5b585b8d6eebe0a"; logging-data="3988035"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FrRHrubS/BEjzKhFNBE5ljREuH9qGGiA=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:4tH2GAqM7X4odj0hAi0dNeX8n0c= Content-Language: en-GB In-Reply-To: <v3jcgf$3ntcs$4@dont-email.me> Bytes: 3068 On 03/06/2024 05:15, Lawrence D'Oliveiro 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. I can't answer for WSL, having not used it myself. But I have used Linux containers of various sorts since OpenVZ (and even chroot jails before that), and there's no doubt that the overhead is usually negligible. The whole deal with containers is that everything runs on the same kernel, but with different namespaces and file system root. If WSL were to work by containers, it would need to run the Linux processes as processes under the NT kernel. I suppose that might be possible, with a translation layer for all system API calls. After all, you can run Windows processes on Linux with Wine - perhaps a similar principle can work for Windows?