A 20 Year Old Chipset Workaround Has Been Hurting Modern AMD Linux Systems

AMD engineer K Prateek Nayak recently uncovered that a 20 year old chipset workaround in the Linux kernel still being applied to modern AMD systems is responsible in some cases for hurting performance on modern Zen hardware. Fortunately, a fix is on the way for limiting that workaround to old systems and in turn helping with performance for modern systems. Phoronix reports: Last week was a patch posted for the ACPI processor idle code to avoid an old chipset workaround on modern AMD Zen systems. Since ACPI support was added to the Linux kernel in 2002, there has been a “dummy wait op” to deal with some chipsets where STPCLK# doesn’t get asserted in time. The dummy I/O read delays further instruction processing until the CPU is fully stopped. This was a problem with at least some AMD Athlon era systems with a VIA chipset… But not a problem with newer chipsets of roughly the past two decades.

With this workaround still being applied to even modern AMD systems, K Prateek Nayak discovered: “Sampling certain workloads with IBS on AMD Zen3 system shows that a significant amount of time is spent in the dummy op, which incorrectly gets accounted as C-State residency. A large C-State residency value can prime the cpuidle governor to recommend a deeper C-State during the subsequent idle instances, starting a vicious cycle, leading to performance degradation on workloads that rapidly switch between busy and idle phases. One such workload is tbench where a massive performance degradation can be observed during certain runs.”

At least for Tbench, this long-time, unconditional workaround in the Linux kernel has been hurting AMD Ryzen / Threadripper / EPYC performance in select workloads. This workaround hasn’t affected modern Intel systems since those newer Intel platforms use the alternative MWAIT-based intel_idle driver code path instead. The AMD patch evolved into this patch by Intel Linux engineer Dave Hansen. That patch to limit the “dummy wait” workaround to old systems is already queued into TIP’s x86/urgent branch. With it going the route of “x86/urgent” and for fixing a overzealous workaround that isn’t needed on modern hardware, it’s likely this patch will be submitted this week still for the Linux 6.0 kernel rather than needing to wait until the next (v6.1) merge window.

Read more of this story at Slashdot.

Hackathon Finds Dozens of Ukrainian Refugees Trafficked Online

An anonymous reader quotes a report from Ars Technica: Earlier this year, the International Organization for Migration reported that more than 3 million refugees fleeing war-torn Ukraine were “at heightened risk of exploitation.” Human trafficking cases, they warned, involved refugees more likely to leave home suddenly without secure financial resources and “less likely to be identified in the immediate aftermath of mass displacement.” Since February, the European Union announced (PDF) that the number is even larger, counting more than 5.4 million people who “have arrived in the European Union since the beginning of the war in Ukraine.” “All relevant stakeholders have recognized that the threat of trafficking in human beings is high and imminent,” EU’s human trafficking plan states. Since women and children represent the majority of refugees fleeing, the plan says they are believed to be most at risk.

To respond, the EU began monitoring online and offline human trafficking risks, and experts called for countries across Europe to start working together to shield refugees during this uncertain time of conflict. This week, the EU’s law enforcement agency focused on cybercrimes, Europol, reported that it had done exactly that by coordinating the first online EU-wide hackathon. By bringing together law enforcement authorities from 20 countries to aid in their investigations, the hackathon targeted criminal networks using social platforms and websites to map out the online criminal landscape of human trafficking across Europe. In particular, Europol noted in its report, “investigators targeted human traffickers attempting to lure Ukrainian refugees.”

“The Internet and human trafficking are interlinked,” Europol stated in its report, which identified 30 online platforms “related to vulnerable Ukrainian refugees,” 10 specifically targeting refugees for human trafficking. Europol identified 80 persons/usernames (with 30 possibly exploiting Ukrainian refugees), 11 suspected human traffickers (five believed to be targeting Ukrainian refugees), and 45 possible victims, 25 of which were Ukrainian. Countries involved in the hackathon were Austria, Albania, Belgium, Denmark, France, Finland, Germany, Greece, Hungary, Lithuania, Netherlands, Portugal, Poland, Romania, Slovenia, Slovakia, Spain, Sweden, the United Kingdom, and Ukraine. Online platforms probed during the hackathon included “a wide range of websites” and “social media, dating platforms, advertising and aid platforms, forums and messaging applications.”

Read more of this story at Slashdot.

Almost Half of Industrial Robots Are In China

According to a new report from the International Federation of Robotics (IFR), China now has almost half of all the world’s robot installations and that it is increasing its lead rapidly. Engineering.com reports: The IFR, which exists to “promote research, development, use and international co-operation in the entire field of robotics,” has been reporting that China has been the world leader in implementing industrial robots for the last 8 years. We have not been paying attention. In 3 years, China has almost doubled the number of industrial robot installations. With its 243,000 robot installations in 2020, China has almost half of all the industrial robots in the world, according to the Wall Street Journal.

A majority of new industrial robots are used in electronics manufacture (for circuit boards, consumer electronics, etc.) and in automobile assembly, particularly in the surging production of electric vehicles (EVs).One must wonder why China, a country with so much cheap manual labor available, would opt for expensive robots with their special demands for tech support. China may have a giant population (1.4 billion people), but its workforce is actually decreasing, says the IFR, due to an increasing segment of its population aging and a growing competition for service jobs. China also expects a leveling off of its rural-to-urban migration. China’s government is determined not to let a declining workforce cause a drop in manufacturing, and as only a centralized, authoritarian government can, it has made robotizing a national priority and has mobilized its forces.

China’s latest five-year plan for the robotics industry, released in December 2021 by the Ministry of Industry and Information Technology (MIIT), aims for nothing less than making China a world leader in robot technology and industrial automation. And it appears to be working. China went from 10 robots per ten thousand employees 10 years ago to 246 robots per ten thousand employees in 2020, the ninth best ranking in the world. To keep the robots state of the art and operational, China’s Ministry of Human Resources and Social Security introduced 18 new occupational titles in June, including “robotics engineering technician.”

Read more of this story at Slashdot.

Is Plant-Based Meat Fizzling In the US?

Citing McDonald’s shelved meat-free burger trial and a 70% dip in Beyond Meat’s stock, The Guardian suggests plant-based meats may not interest Americans as much as investors thought. From the report: Getting meat eaters in the US to adopt plant-based alternatives has proven a challenge. Beyond Meat, which produces a variety of plant-based products, including imitations of ground beef, burgers, sausages, meatballs and jerky, has had a rough 12 months, with its stock dipping nearly 70%. Multiple chains that partnered with the company, including McDonald’s, have quietly ended trial launches. In August, the company laid off 4% of its workforce after a slowdown in sales growth. Last week, its chief operating officer was reportedly arrested for biting another man on the nose during a road rage confrontation. It’s a dramatic reversal of fortune. Just two years ago, Beyond Meat, its competitor Impossible Foods and the plant-based meat industry at large seemed poised to start a food revolution.

For a time, Wall Street went vegetarian. In 2019 Beyond Meat was valued at over $10 billion, more than Macy’s or Xerox. The most bullish investors believed that plant-based meat would make up 15% of all meat sales by 2030. But the reality of Americans’ interest in plant-based meat has proven more complicated than investors thought, and the adoption of meat alternatives has been slower than what was once hoped. Today Beyond Meat is valued at just over $900 million. The sobering story is similar to those experienced by many new ventures that see exhilarating hype after a flood of Silicon Valley venture capital cash, fueled by excitement about innovation. Bill Gates backed Beyond Meat, and a number of venture capital firms that typically invest in tech startups funneled money to startups making plant-based meat. Even the meat industry’s biggest players have, ironically, invested in companies coming up with plant-based meat. While eating plant-based meat (or no meat at all) has been shown to be the most effective thing individual consumers can do to fight climate change, “consumers seem hesitant to adapt their behavior when the environment — not their health or wallets — is the sole beneficiary,” reports The Guardian. “Despite the increasing alarm over climate change, the number of Americans who are vegetarian or vegan has remained relatively stable over the last 20 years.”

“Even when participants in a study conducted at Purdue University in Indiana were given information about the carbon footprint of meat production, participants were more likely to go with regular meat over a plant-based alternative.”

Read more of this story at Slashdot.

DOT To Map Out Nation’s Time Zones After Report Shows No Official Map Exists

A person may take knowing the local time for granted, but an official review revealed that there is no single, accurate map showing the nation’s time zones and local observance of Daylight Saving Time. CNN reports: Federal transportation officials are now at work creating an accurate map of the nation’s time zones, according to a report by the inspector general for the Department of Transportation. The issue came up, the inspector general’s office said, after the US Senate passed legislation this year to end the biannual time turn by making Daylight Saving Time permanent.

Investigators found no single map accurately showing the boundaries nationwide and said several sources of time information on the DOT website contained errors, such as inaccurately noting the time practices in some localities. For example, one map incorrectly identifies a deviation in Nevada: “Elko County, NV is shown as the location that changed time zones rather than the correct location, the city of West Wendover.”

“The official boundaries are narratively described [in federal regulations] with various types of coordinates and geographic features such as lines of longitude, State or county lines, and rivers,” the report stated. The inspector general report said the Transportation Department is responsible for keeping the clock because of the importance of time to travel. It said the original five time zones have expanded to nine.

Read more of this story at Slashdot.

‘Linux IP Stacks Commentary’ Book Tries Free Online Updates

Recently the authors of Elements of Publishing shared an update. “After ten years in print, our publisher decided against further printings and has reverted the rights to us. We are publishing Elements of Programming in two forms: a free PDF and a no-markup paperback.”

And that’s not the only old book that’s getting a new life on the web…

22 years ago, long-time Slashdot reader Stephen T. Satchell (satch89450) co-authored Linux IP Stacks Commentary, a book commenting the TCP/IP code in Linux kernel 2.0.34. (“Old-timers will remember the Lion’s Unix Commentary, the book published by University xerographic copies on the sly. Same sort of thing.”) But the print edition struggled to update as frequently as the Linux kernel itself, and Satchell wrote a Slashdot post exploring ways to fund a possible update.

At the time Slashdot’s editors noted that “One of the largest complaints about Linux is that there is a lack of high-profile documentation. It would be sad if this publication were not made simply because of the lack of funds (which some people would see as a lack of interest) necessary to complete it.” But that’s how things seemed to end up — until Satchell suddenly reappeared to share this update from 2022:
When I was released from my last job, I tried retirement. Wasn’t for me. I started going crazy with nothing significant to do. So, going through old hard drives (that’s another story), I found the original manuscript files, plus the page proof files, for that two-decade-old book. Aha! Maybe it’s time for an update. But how to keep it fresh, as Torvalds continues to release new updates of the Linux kernel?

Publish it on the Web. Carefully.

After four months (and three job interviews) I have the beginnings of the second edition up and available for reading. At the moment it’s an updated, corrected, and expanded version of the “gray matter”, the exposition portions of the first edition….

The URL for the alpha-beta version of this Web book is satchell.net/ipstacks for your reading pleasure. The companion e-mail address is up and running for you to provide feedback. There is no paywall.

But there’s also an ingenious solution to the problem of updating the text as the code of the kernel keeps changing:

Thanks to the work of Professor Donald Knuth (thank you!) on his WEB and CWEB programming languages, I have made modifications, to devise a method for integrating code from the GIT repository of the Linux kernel without making any modifications (let alone submissions) to said kernel code. The proposed method is described in the About section of the Web book. I have scaffolded the process and it works. But that’s not the hard part.

The hard part is to write the commentary itself, and crib some kind of Markup language to make the commentary publishing quality. The programs I write will integrate the kernel code with the commentary verbiage into a set of Web pages. Or two slightly different sets of web pages, if I want to support a mobile-friendly version of the commentary.

Another reason for making it a web book is that I can write it and publish it as it comes out of my virtual typewriter. No hard deadlines. No waiting for the printers. And while this can save trees, that’s not my intent. The back-of-the-napkin schedule calls for me to to finish the expository text in September, start the Python coding for generating commentary pages at the same time, and start the writing the commentary on the Internet Control Message Protocol in October. By then, Linus should have version 6.0.0 of the Linux kernel released.

I really, really, really don’t want to charge readers to view the web book. Especially as it’s still in the virtual typewriter. There isn’t any commentary (yet). One thing I have done is to make it as mobile-friendly as I can, because I suspect the target audience will want to read this on a smartphone or tablet, and not be forced to resort to a large-screen laptop or desktop. Also, the graphics are lightweight to minimize the cost for people who pay by the kilopacket. (Does anywhere in the world still do this? Inquiring minds want to know.)

I host this web site on a Protectli appliance in my apartment, so I don’t have that continuing expense. The power draw is around 20 watts. My network connection is AT&T fiber — and if it becomes popular I can always upgrade the upstream speed.

The thing is, the cat needs his kibble. I still want to know if there is a source of funding available.

Also, is it worthwhile to make the pages available in a zip file? Then a reader could download a snapshot of the book, and read it off-line.

Read more of this story at Slashdot.