Live data from Hacker News

Reworking 30 lines of Linux code could cut power use by up to 30 percent

spectrum.ieee.org

81–90 of 123 posts

Re: Reworking 30 lines of Linux code could cut power use by up to 30 percent

#81
post #5

Linux added a busy polling feature for high performance networking. Most Linux software does not use it, but software used in datacenters (e.g. by CDNs) that does use it makes the system very energy inefficient when things are not busy. This patch gives the the kernel the ability to turn that off when not busy to regain energy efficiency until things become busy again. The article name is somewhat misleading, since i…

It’s a lot more nuanced than that. Being in a data center doesn’t imply heavy network utilization. The caveat is clearly outlined in the article being workload based not deployment based. If you have a home machine doing network routing it would absolutely benefit from this. In fact I would say probably the vast majority of Linux installs are home network devices, just people don’t know it. Embedded Linux machines do…

There should have been an off switch from the beginning though IMO, though perhaps there already is? But the number of corporates messing with the kernel for their own purposes greatly outnumbers the number of independent developers. That gives big tech a big influence. And the Linux Foundation is there to cement that influence.

I much prefer grassroots projects. Made by and for people like me <3 That's why I moved to BSD (well there were other reasons too of course)

Re: Reworking 30 lines of Linux code could cut power use by up to 30 percent

#82
post #2

> The code has been implemented as part of the Linux kernel release version 6.13 in January. This is basically 3 month old news now.

Did you know about this before reading the article?

Yes, it was posted before over here and other news sites. I've seen it reposted several times over the past three months.

Re: Reworking 30 lines of Linux code could cut power use by up to 30 percent

#83
post #2

> The code has been implemented as part of the Linux kernel release version 6.13 in January. This is basically 3 month old news now.

What is wrong with 3 month old news? I in fact prefer ones that are not repeated based only on basis being new and much more likely to be confused/misleading/hoax/lie/not actually interesting. Similarly, I prefer old books, old computer games, old movies (or at least not ones currently being hot/viral/advertised), this allows a lot of trash to self-filter out. Including trash being breathlessly promoted and consumed.

What's wrong with it is the fact that it was already posted before over here and other news sites. I've seen it reposted several times over the past three months and I'm tired of seeing this.

6.13 is old news now, we're already on 6.14, and even 6.15 isn't far from release (we're already at rc3).

Re: Reworking 30 lines of Linux code could cut power use by up to 30 percent

#85
post #2

> The code has been implemented as part of the Linux kernel release version 6.13 in January. This is basically 3 month old news now.

Well, I run Linux on both my laptops and desktops, consider myself an enthusiast etc., but I don’t track the development of the mainline Linux kernel closely enough to know what goes on there in the past three months. I may notice changes when they get adopted by upstream maintainers of my distro, but that usually takes time..

That doesn't make it okay to repost stale news. Would you be okay if I went to say phoronix.com, started picking other notable 3-month old Linux kernel articles and repost them here one by one? Heck, why limit myself just to the Linux kernel, why don't I just start reposting all the top headlines in the past few months, because surely not everyone is up-to-date on all the developments right?

Re: Reworking 30 lines of Linux code could cut power use by up to 30 percent

#86

Earlier quoted context omitted.

It’s a lot more nuanced than that. Being in a data center doesn’t imply heavy network utilization. The caveat is clearly outlined in the article being workload based not deployment based. If you have a home machine doing network routing it would absolutely benefit from this. In fact I would say probably the vast majority of Linux installs are home network devices, just people don’t know it. Embedded Linux machines do…

There should have been an off switch from the beginning though IMO, though perhaps there already is? But the number of corporates messing with the kernel for their own purposes greatly outnumbers the number of independent developers. That gives big tech a big influence. And the Linux Foundation is there to cement that influence. I much prefer grassroots projects. Made by and for people like me <3 That's why I moved t…

Uh Linux is a grassroots project, quite unlike Berkley Software Distribution.

Also no you are entirely unaffected by this unless you use a very specific and uncommon syscall.

Re: Reworking 30 lines of Linux code could cut power use by up to 30 percent

#87
post #14

Earlier quoted context omitted.

Without looking at stats, I would think android phones.

Android isn't Linux. While Android uses the Linux kernel, it's not a standard Linux distribution. It has its own user space and libraries, making it a distinct operating system.

This means it's not GNU/Linux, but that's not the only flavor of Linux. Alpine uses busybox and musl instead of GNU userland and glibc, but few would say it's not a Linux distribution.

Re: Reworking 30 lines of Linux code could cut power use by up to 30 percent

#88

This is really cool. As a high-performance computing professional, I've often wondered how much energy is wasted due to inefficient code and how much that is a problem as planetary compute scales up. For me, it feels like a moral imperative to make my code as efficient as possible, especially when a job will take months to run on hundreds of CPU.

Meanwhile I'm running four Electron apps just to act like different shitty IRCs.

Re: Reworking 30 lines of Linux code could cut power use by up to 30 percent

#89
post #80

Earlier quoted context omitted.

Practically none of it would be applicable (if using a commercial router). They all use hardware offloading, and traffic seldom touches the CPU. Only "logical" tasks are raised to the CPU, like ARP resolution and the likes (what’s called "trap to cpu"). If you’re doing custom routing with a NUC or a basic Linux box, however, this would gain massive power savings because that box pretty much only does networking.

Only if you're using busy polling. Very little software uses it, because it's only a good fit if you think pegging a CPU to reduce latency responding to packets is a good trade.

Yup, you’re right. I always forget this patch only applies to opted-in polling and not automatic polling for interrupt moderation.

Re: Reworking 30 lines of Linux code could cut power use by up to 30 percent

#90
post #14

Earlier quoted context omitted.

Without looking at stats, I would think android phones.

Android isn't Linux. While Android uses the Linux kernel, it's not a standard Linux distribution. It has its own user space and libraries, making it a distinct operating system.

[deleted]
Post reply on HN