linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

AernaLingus, in The Linux kernel has been accidentally hardcoded to a maximum of 8 cores for nearly 20 years

There’s a variable that contains the number of cores (called cpus) which is hardcoded to max out at 8, but it doesn’t mean that cores aren’t utilized beyond 8 cores–it just means that the scheduling scaling factor will not change in either the linear or logarithmic case once you go above that number:

code snippet/* * Increase the granularity value when there are more CPUs, * because with more CPUs the ‘effective latency’ as visible * to users decreases. But the relationship is not linear, * so pick a second-best guess by going with the log2 of the * number of CPUs. * * This idea comes from the SD scheduler of Con Kolivas: */ static unsigned int get_update_sysctl_factor(void) { unsigned int cpus = min_t(unsigned int, num_online_cpus(), 8); unsigned int factor; switch (sysctl_sched_tunable_scaling) { case SCHED_TUNABLESCALING_NONE: factor = 1; break; case SCHED_TUNABLESCALING_LINEAR: factor = cpus; break; case SCHED_TUNABLESCALING_LOG: default: factor = 1 + ilog2(cpus); break; } return factor; }

The core claim is this:

It’s problematic that the kernel was hardcoded to a maximum of 8 cores (scaling factor of 4). It can’t be good to reschedule hundreds of tasks every few milliseconds, maybe on a different core, maybe on a different die. It can’t be good for performance and cache locality.

On this point, I have no idea (hope someone more knowledgeable will weigh in). But I’d say the headline is misleading at best.

TCB13, in A new pilot will investigate the use of Forgejo (A non profit FOSS alternative to github and gitea) in german schools
@TCB13@lemmy.world avatar

Well at least they’re going to usei something decent and not the Apache Allura crap.

redcalcium, in Help. Various games stopped working and i have no idea how to diagnose the issues

Instead of guessing, looking at the log might help. Launch the game with PROTON_LOG=1 %command% set in “Set Launch Options” setting in the game properties. The log file will appear on your home directory.

dynamo,

Magica is claiming an issue with VCRedist, Orcs Must Die 2 doesn’t close on its own so no log, Serious sams and painkiller don’t show any problems. The rest isn’t using proton.

redcalcium,

It’s a long shot, but sometimes when I have issues with proton which I can’t figure out, switching from Wayland to X11 (or vice versa) magically fixed it.

dynamo,

Nope.

Frederic, in The Linux kernel has been accidentally hardcoded to a maximum of 8 cores for nearly 20 years

Title bullshit, we have multicore machine for years, I can guarantee you this had about no impact else people running Xeon or Threadripper would have saw it at first try 15 years ago.

This looks like to have an impact on the scheduler but not on how many cores are used.

drwho,

I agree. Some of the Linux servers I used to run at work in the early 00’s were 12 to 16 core monsters (for the time) and the kernel didn’t even blink.

JackGreenEarth, in Louvre: C++ library for building Wayland compositors.

Is that desktop environment an apple UI clone?

ehopperdietzel, (edited )

Yes (kinda), that is a screenshot of one of the example compositors I included called “louvre-views” which implements server side decorations for apps that support the XDG Decoration protocol.

TCB13, in on arch btw.
@TCB13@lemmy.world avatar
PoisonedPrisonPanda,

This is the way.

Choo choo mtherfcker

TCB13,
@TCB13@lemmy.world avatar

Absolutely obliterated.

AngryCommieKender,

And that’s how you create an Arch Unstable user

brax,

Choo choo UBUNTU

TCB13,
@TCB13@lemmy.world avatar

Choo choo proprietary stuff and holding security unless you subscribe to services. :P

fl42v,
TCB13,
@TCB13@lemmy.world avatar

Choo choo debian+flatpak. Rock solid OS with the latest software. :)

fl42v,

Wheeeew nixos + ???. More or less unbreakable is with both latest and stable packages that you can easily mix and match (:

meekah,
@meekah@lemmy.world avatar
fl42v,

Damn, English is weird 🤣

meekah,
@meekah@lemmy.world avatar

It sure is :D

TCB13,
@TCB13@lemmy.world avatar
daredevil, (edited ) in Is there an easy way to set up an email client so you get system notifications in GNOME once you receive an e-mail?
@daredevil@kbin.social avatar

If you receive these notifications on mobile, you can use kdeconnect (gsconnect on GNOME) which sends pop up notifications on your desktop from your phone, as a workaround.

shapis,
@shapis@lemmy.ml avatar

I love the idea of kdeconnect but it wreaks havoc on my battery, on both phone and laptop.

neurospice, in on arch btw.

I just got into wayfire after using Hyprland and nobody prepared me for the cylinder. I will open windows and wait for the screensaver just to see the rotating cylinder. So much better than the cube

Crozekiel, in Overheating laptop, should I try a lighweight distro - which one?

In my experience with them, MSI laptops tend to run quite hot in general, your OS probably isn't going to fix it. You can try one of those laptop cooling plates, basically a mesh platform with fans, ensuring cool air is always available to the laptop intakes, but it isn't exactly a perfect solution.

Really it just needs more cooling capacity - they seem to cut razor close to the amount needed in their designs so when eventually cooling becomes less efficient either through fans getting tired/clogged or thermal paste/pads breaking down, it will not keep up.

LunchEnjoyer,
@LunchEnjoyer@lemmy.world avatar

Yeah it’s a rather thin laptop, but I will open it up and get some cooling paste on it 👍

LemmyIsFantastic, in Yes, Ubuntu Is Withholding Security Patches for Some Software

Oh God, a company wants to get paid for its support. Let’s tar and feather them.

palordrolap, (edited ) in Is there an easy way to set up an email client so you get system notifications in GNOME once you receive an e-mail?

A dumb idea that probably doesn't have an implementation: Set Thunderbird to play a sound on mail arrival, but have the sound file actually be a pipe that when read from also pushes a system notification. This is kind of like how randomised .signature files were often set up in the old days.

Other alternatives: 1: There might be a purely mail checker out there that can log into mail servers to see if there's new mail there but not be able to read or download it.

2: Run your own mail server that pulls mail from other servers. Then it's "merely" a matter of checking for file update times on your own machine. Ancient tools like xbiff were designed for this.

TootSweet, in on arch btw.

I’m with you. One day I was like “I wonder if Wayland’s mature enough to use as my daily driver now” and installed Sway on a Raspberry Pi. I used DWM before, but now Sway’s my default.

The only issue I still have is that I wish Zoom and ffmpeg supported the wlroots-specific screen capture methods. Those are the only things lacking that are keeping me on i3/X11 on the machine I use for work.

drwankingstein, (edited ) in Louvre: C++ library for building Wayland compositors.

ngl Im more interested in the dock and what protocols it uses. I’ve been missing latte dock since I migrated to wayland

ehopperdietzel,

The dock is rendered directly by the compositor in one of the examples; it’s not an external application as it ideally should be. It doesn’t rely on any intricate protocols or systemd services to monitor the states of apps. I added it solely for demonstration purposes.

drwankingstein,

Ah thats a shame, looks good however

NathanUp,
@NathanUp@lemmy.ml avatar

I just use plasma panels these days

Perroboc, in Help. Various games stopped working and i have no idea how to diagnose the issues

How do you handle which GPU is used in which game? I would guess you have an AMD iGPU, and a Nvidia GPU for games, right? Maybe something along those lines got updated?

dynamo,

That’s correct, but i mostly let the laptop handle it, unless i know for a fact that a game needs/doesn’t need the N GPU, in which case i either manually switch it over or (and this is the case for wine apps through bottles) i configure the program to only use the iGPU

Perroboc,

What are you using to switch the GPU? Have you tried alternatives? EnvyControl for example.

Also, have you checked if you’re using ONLY Radeon-Vulkan for the AMDGPU, and not AMDVLK also?

dynamo,

No clue, since mint cinnamon (afaik) doesn’t have a GUI for managing gpu drivers i don’t know how to approach it.

TerraRoot,

Can you simplfy the issue by disabling the nvidia in bios?

americanwaste, in How is your experience with Fedora as a server?

We used to run firewalls running Fedora at work, works fine. Issue is you’re only getting 6 months of updates, best to look at Rocky Linux for something that doesn’t change much if you do anything beyond a single program.

timicin,

anedotally: it works fine if it’s from a vendor who provides support for it. eg cumulus switches running fedora 9 but still getting updates from cumulus engineers.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #