News for hackers. Stuff that matters.
Re:Win4wine – Run Windows Shell as the Linux Desktop on Wine by nialv7 on Monday November 23, 2026 @11:06AM (#50614140)
NT kernel in fact doesn't have good performance. process creation is especially slow (many orders of magnitude compared to linux) until very recently. IIRC windows' file system operations are also a lot slower than linux.
Re:Win4wine – Run Windows Shell as the Linux Desktop on Wine by regularfry on Monday November 23, 2026 @11:37AM (#50614745)
Wasn't process creation being slow an explicit design choice? I seem to recall that it was a tradeoff for better in-process threads but I might well be misremembering.
Re:Win4wine – Run Windows Shell as the Linux Desktop on Wine by dblohm7 on Monday November 23, 2026 @11:58AM (#50615131)
> process creation is especially slow

Again, that's not an issue with the NT kernel itself; most of that time is due to the Win32 layer which jumps through extraordinary hoops to support its app model, which essentially is an emulation of 16-bit Windows.

Re:Win4wine – Run Windows Shell as the Linux Desktop on Wine by breppp on Monday November 23, 2026 @01:31PM (#50616671)
I know there are remains of 16-bit Windows, but why do you think it's an emulation of 16-bit Windows?
Re:Win4wine – Run Windows Shell as the Linux Desktop on Wine by toast0 on Monday November 23, 2026 @12:50PM (#50616032)
My understanding is most of the windows file system suck is from the ever present synchronous anti-virus hooks on every read and write. If you disable that, it gets a lot better: I don't know how competitive it is, but it's decent. Unix/Linux file perf would suck if you forced synchronous anti-virus hooks as well.

Procees creation in NT is slow, but many applications can be designed to avoid it. Process creation is a bottleneck on Unix/Linux as well, the bottleneck is just usually not a big deal until you're trying to fork thousands of times per second... Then you have to do the same work you'd have done on NT to avoid forking.

Re:Win4wine – Run Windows Shell as the Linux Desktop on Wine by cyberax on Monday November 23, 2026 @02:13PM (#50617425)
No. The file system layer in NT sucks because it sucks.

File operations in NT are implemented using a very generalized model of IRPs (IO Request Packets) that are routed through (possibly) multiple layers of filters. It's very generic and extensible, but not fast.

They actually had to add a layer of shortcuts ("Fast IO") that bypasses this for a limited set of data operations, but not for metadata. This layer just uses classic tables of function pointers instead of IRPs, just like in Linux.

Re:Win4wine – Run Windows Shell as the Linux Desktop on Wine by okanat on Monday November 23, 2026 @01:02PM (#50616225)
The performance of the process creation isn't a bug but an intended tradeoff. NT is slower because its process creation does more (checks for permissions, reloads binary, does relocation from scratch for DLLs, basically what fork + exec does but a bit more).

Many Unix systems didn't have threads but relied purely on multiprocessing. Threads on Linux is still a hack on top of the process API: clone.

On the other hand NT came with threads from the first release to do multitasking. It doesn't have fork because NT developers didn't want to add the hacky fork syscall for cloning the process / its memory area.