Skip Navigation
Why we don't have 128-bit CPUs
  • Even the newest "64-bit" cpus are really just 48-bit (or 36-bit on low end) or if bleeding edge 56-bit physical adressing processors. This is the maximum amount of virtual memory a process can have access to. You could memory map all your hard disks an still have room to map more physical memory to VMA.

  • Pls someone make this reality
  • Fun fact: we do have bad schooling and overloaded teachers in here... Not to mention the bullying problem that even the ex-president was worried about. The quality is dropping because +300 students are being crammed under the same roof. And the politicians are only making it worse by not letting the teachers do their job and are cutting costs. (Constantly shifting how to do their job) This will not go down well for any students that have even minor difficulties in learning...

  • To all you outside of the US...
  • A dum question: if both candidates are unable to function, then what happens? (Trump for his crimes, Biden for getting dementia...)

    Meanwhile in Finland: the Finnish version of "build the wall":

    Parliament's Administrative Committee will not resume its discussion of the Refoulement Act until after the weekend. The committee is still so far behind schedule that it could not complete its work today. The debate on the bill continued during the committee meeting, which started at 5 p.m. but ended quickly. Peltokangas says there was no drama at the meeting. https://yle.fi/uutiset/lyhyesti/74-20097017

    The bill needs 5/6 parliamentary approval and politicians are already sweating over it because it touches too many international treaties + constitution. Debate is mostly: is it ready yet? is it ready yet? is it ready yet? (While the committees checking the bill are getting more uneasy by the bill's content...)

  • Is there a way to keep Linux responsive when at ~100% CPU usage?
  • nohz_full confusingly also helps with power usage.. if the cpu doesn't have anything to run, no point waking it up with a scheduler-tick IPI.. but also no point trying to run the scheduler if a core is peaking with a single task... With nohz the kernel overheard basically ceases to exist for a task while the it is running. (Thought the overhead just moves to non-nohz cpu cores)

  • what Lemmy communities don't exist but you wish they did?
  • I wish lemmy communties existed for:

      1. How are you doing today?
      1. Did you discover anything new to your consciousnesses today?
      1. I fucke'ed today. Here is how.

    Edit: yeah, I think I miss a few of the old subreddit's. Even if there is an equivalent in lemmy, such communities are quite silent.

  • Is there a way to keep Linux responsive when at ~100% CPU usage?
  • Why can Windows do it when Linux can’t?

    Windows lies to you. The only way they don't get this problem is that they are reserving some CPU bandwidth for the UI beforehand. Which explains the 1-2% y-cruncher worse results on windows.

  • Is there a way to keep Linux responsive when at ~100% CPU usage?
  • I agree that UI should always take priority. I shouldn't have to do anything to guarantee this.

    I have HZ_1000, tickless kernel with nohz_full set up. This all has a throughput/bandwidth cost (about 2%) in exchange for better responsiveness by default.

    But this is not enough, because the short burst UI tasks need near-zero wake-up latency... By the time the task scheduler has done its re-balancing the UI task is already sleeping/halted again, and this cycle repeats. So the nice/priorities don't work very well for UI tasks. Only way a UI task can run immediately is if it can preempt something or if the system has a somewhat idle CPU to put it on.

    The kernel doesn't know any better which tasks are like this. The on-going EEVDF, sched_ext scheduler projects attempt to improve the situation. (EEVDF should allow specifying the desired latency, while sched_ext will likely allow tuning the latency automatically)

  • Is there a way to keep Linux responsive when at ~100% CPU usage?
  • No, I definitely want it to use as many resources it can get.

    taskset -c 0 nice -n+5 bash -c 'while :; do :; done' &
    taskset -c 0 nice -n+0 bash -c 'while :; do :; done'
    

    Observe the cpu usage of nice +5 job: it's ~1/10 of the nice +0 job. End one of the tasks and the remaining jumps back to 100%.

    Nice'ing doesn't limit the max allowed cpu bandwidth of a task; it only matters when there is contention for that bandwidth, like running two tasks on the same CPU thread. To me, this sounds exactly what you want: run at full tilt when there is no contention.

  • Is there a way to keep Linux responsive when at ~100% CPU usage?
  • "The kernel runs out of time to solve the NP-complete scheduling problem in time."

    More responsiveness requires more context-switching, which then subtracts from the available total CPU bandwidth. There is a point where the task scheduler and CPUs get so overloaded that a non-RT kernel can no longer guarantee timed events.

    So, web browsing is basically poison for the task scheduler under high load. Unless you reserve some CPU bandwidth (with cgroups, etc.) beforehand for the foreground task.

    Since SMT threads also aren't real cores (about ~0.4 - 0.7 of an actual core), putting 16 tasks on a 16/8 machine is only going to slow down the execution of all other tasks on the shared cores. I usually leave one CPU thread for "housekeeping" if I need to do something else. If I don't, some random task is going to be very pleased by not having to share a core. That "spare" CPU thread will be running literally everything else, so it may get saturated by the kernel tasks alone.

    nice +5 is more of a suggestion to "please run this task with a worse latency on a contended CPU.".

    (I think I should benchmark make -j15 vs. make -j16 to see what the difference is)

  • What the heck is a god dang cloud?
  • I once helped a person with their computer. They complained the they cant save the their photos. Well, their onedrive was filled to brim with crap, while the local 1Tb disk was empty because they had zero idea how storage and folders work. I had to explain her there is literally 1000x more fast disk space available, so please dont save into onedrive.

  • Trying Linux after using Windows for decades
  • Mint was the distro that converted me. After 8-10 years, I'm still using the cinnamon DE, but just on top of Arch. Next hope is the devs port it over wayland so I can also ditch xorg. (There is a demo/alpha available)

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)JA
    JATth @lemmy.world
    Posts 0
    Comments 66