228 points · by tshtf · 10y ago · 83 comments
What are the advantages and practical applications of this ?
documentation here : https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux....
It's not entirely useful at the moment to be honest, since all it does is mask /proc/self/cgroup. But it could be extended later to also virtualise /proc/meminfo and /proc/cpuinfo to reflect the cgroup limits.
I'm currently trying to get a patch merged into cgroup core to allow for processes in a cgroup namespace to manage their own cgroups (without compromising the hierarchy limits). Hopefully it gets into 4.7. This will be exceptionally useful for cgroup hierarchies.
Would you have preferred for the kernel to instead allow the process to exceed its memory limit, even if that means evicting something else outside the container? If so, why not just set the limit higher?
Apologies if I'm misunderstanding something.
This because now a would be attacker can't as easily tell if they are inside a container or not after exploiting some daemon vulnerability.
The barriers to enabling the magic plan9 has are more along the lines of making it feasible for unprivileged users to mount and create namespaces themselves, which is complicated (afaik) largely by the way privilege escalation happens in unix systems.
This just looks like it prevents some information from leaking out about the host system from inside a cgroup by inspecting the /proc/PID/cgroup file.
This was discussed on HN a while back. Gee, it's too bad that SCTP hasn't found more popularity. Reliable datagram-based (or stream-based) messaging, with support for binding to multiple endpoints.
In any case, KCM sounds like it's worth exploring.
In particular, epoll cannot be used with disks.
Is it still the case that BSD has an edge over Linux? Is KCM addressing the problem of handling a lot of hanging connections?
Please point out if my assumptions are incorrect. I am new to kernel and network programming.
Edit: By BSD I mean FreeBSD
I don't know it well enough, perhaps someone more knowledgeable than I can chime in.
KCM seems really neat, though of course now we need a library that abstracts it away and has a fallback to regular TCP so that applications don't become Linux-only.
here is the previous (spartan !) discussion: https://news.ycombinator.com/item?id=10310090
It feels like there was too many cooks involved this time round, trying to make the USB spec go in multiple directions at once.
Where before port and speeds were joined in one spec, now you have no less than 3 specs that can be mixed as the device OEM sees fit.
First is the 3.1 data spec, that can work on both A and C plugs.
then you have the C plug spec, that as you point out do not require 3.1 data.
Then there is the Power Delivery spec, that is all about turning USB into a generic power delivery cable. And that again can be used with both A and C plugs, and with any and all data speeds.
http://slackware.cs.utah.edu/pub/slackware/slackware-8.0/sou...
[0]: https://slackbuilds.org/mirror/slackware/slackware-current/s...
For a summary of new features.
Linux now runs on almost _all_ of those with a mostly compatible API and ABI, from raspi to Z-mainframe, speaks to hundreds of weird hardwares, and hundreds more network protocols built in.
I'd say it was instrumental.
AS/400. VMS. Plan9. Amiga. QNX. Even NT. All of these date to before Linux was created. (Strictly speaking, I believe Plan9's first public release was after Linux's, but work on Plan9 started at Bell in the mid 80s.)
VMS and NT handle async IO much better. QNX, and to an extent NT, are more reliable¹ by design (as microkernels²). AS/400 and Plan9 are based on more powerful and coherent abstractions ("everything is an object" and "everything is a file" respectively).
--
¹The NT kernel really is quite reliable, it's everything else that gives Windows a bad reputation for reliability.
²NT isn't strictly a microkernel, but it's very microkernel-ish.
Ok.. reluctantly, I'll bite.
Why does a shift "need" to take place? What do you believe is broken and how is a developer "understanding the impact" of Linux going to fix it?
Also, what is a "true editor" and conversely what makes an editor not "true"? Do you have examples? Can software development only be done in a "true" editor?
OS X also experiences about a 2-fold increase whereas windows experiences a large decrease in use amongst developers compared to its general desktop usage. I think Windows should just switch to the Linux kernel and build Windows container to run legacy programs and port all their software to Linux if they want to win over devs. The "bash on Windows" doesn't appeal to me at all.
Of course, here on hacker news the culture is really more corporate than hacker.
People forget that Linux is the dominant
kernel/os because it dominates nearly every
market that isn't the desktop
People also forget that Linux came to prominence once backed by corporations having and a (valid, IMHO) agenda to not be controlled by Microsoft. The severe OEM and license agreements negotiated in the late 80's and 90's certainly motivated R&D into alternatives.And people forget that there are other very popular markets[0] using other toolsets[1].
So, when you say:
here on hacker news the culture is really
more corporate than hacker.
It seems to create a paradox.0 - http://www.theregister.co.uk/2013/11/16/sony_playstation_4_k...
This is mostly correct while referring to the kernel. Nevertheless, a kernel by itself is just one component of the low level system. And I personally definitely do not consider the Android experience a "GNU/Linux" one - even the base libc is replaced with a quite broken (e.g wrt POSIX) Bionic. This is leaving aside all the firmware issues, lack of administrator control without "rooting", etc.
So in other words: it is natural to "forget" that Linux is widespread on mobile devices, simply because the experience is extremely different.
"CLI" stands for "command line interface" and has been a very standard abbreviation for a very long time...