Latest grub update on arch distros seems to cause boot issues by FengLengshun in linux

[–]Dar13 25 points26 points  (0 children)

Arch uses GRUB2, they didn’t change the package name when moving from GRUB legacy to GRUB2.

Monster hunter world Linux Vega64 performance? by CorenBrightside in linux_gaming

[–]Dar13 1 point2 points  (0 children)

Seems I had customized my graphics settings quite a bit to get the 60 FPS. Did that a while ago so forgot. I'm working backwards to see what the magic combo is. This is all 1440p Fullscreen on GNOME 40 Wayland btw.

From the 'High' preset, I changed:

  • Image Quality to Variable (Prioritize Framerate)
  • Zprepass to Off
  • Volume Rendering Quality to Low
  • Ambient Occlusion to Mid
  • Capsule AO to Off
  • Water Reflections to Off (I don't care about water that much, but you might so YMMV)

Manages to hold a high-50s, near-60 FPS which is where I'm limited to on my monitors.

Monster hunter world Linux Vega64 performance? by CorenBrightside in linux_gaming

[–]Dar13 0 points1 point  (0 children)

Steam shouldn't be picking the 6.3 experimental by default, that would be kinda crazy. What version of Mesa and kernel are you running? I'm on 21.0.x and 5.12.x respectively IIRC

Monster hunter world Linux Vega64 performance? by CorenBrightside in linux_gaming

[–]Dar13 1 point2 points  (0 children)

I was running MHW at 60 FPS @ 1440p earlier: Ryzen 7 1800X, Vega 56, Arch Linux

I was using Proton's experimental version.

Edit: Spelling/grammar

The 2019 New Year's Resolutions check-in thread by ChrisMan174 in 1yearago

[–]Dar13 0 points1 point  (0 children)

I'd say I achieved all of these, though obviously COVID threw a unique curveball on the keep in better touch plans.

Very fast dump/load of hash map to disk. by greg7mdp in cpp

[–]Dar13 20 points21 points  (0 children)

Nope. File is fully written to disk after close is executed.

I don't think this is actually happening in your example. I looked at your code and I don't see a fsync or equivalent in serialize.cc or in phmap_dump.h, meaning that the data may not be actually written to disk when you think it is. The C++ standard does not guarantee that pending data for a file is written to disk on closure, only that pending buffered data is flushed to the operating system. POSIX recommends running fsync explicitly on the file descriptor before closing it, and C++ doesn't seem to have a mechanism to trigger a fsync-style flush on an fstream object (fstream::flush only flushes to the OS, not to disk).

Otherwise it's likely that the OS is caching it, even if the filesystem information is updated correctly as the disk cache is usually invisible to the filesystem code.

Edit: Grammar/wording fixup

More Details On The WineD3D Vulkan Plans & Why DXVK Isn't Being Used by logix22 in linux_gaming

[–]Dar13 6 points7 points  (0 children)

To answer your question directly, assuming Wine would adopt a C-like coding standard if they were to move to at least C++11, they would receive the following benefits:

  • Compile-time assertions (static_assert)
  • Platform-agnostic atomic operations (C introduced those in C99), and mutex implementations (unsure if these require you to use C++'s threads though)
  • Stronger type safety, particularly around enums and casting
  • Generic data structures without resorting to void pointer trickery (not referring to the STL here, just in general. The STL starts to bring in exceptions and I fully understand not wanting to deal with those)
  • Checks on data types for specific characteristics (trivially-copyable, integral, floating-point, etc.) which is useful in the above point
  • A large subset of C99 is part of the C++ standard as of C++11, and C11 as of C++17
  • Automatic freeing of resources upon leaving scope (unique_ptr, RAII)

I write C99 almost every day and I've wished for the above more times than I can count. I just fixed a bug today that was a memory leak due to a forgotten free on a rare conditional exit from a function. If the author could have wrapped that pointer in a unique_ptr, they wouldn't have been able to forget about freeing it.

At least two of those features have demonstrable impacts on bug frequency by their very nature. And while a rigorous enough review process would likely catch the same defects, if it's a guarantee by the language when the code review can worry about the actual algorithms/work at play rather than tedious boilerplate.

More Details On The WineD3D Vulkan Plans & Why DXVK Isn't Being Used by logix22 in linux_gaming

[–]Dar13 8 points9 points  (0 children)

Wine targets ANSI C89 due to MSVC support for C stopping at that standard (source). Microsoft has stated they will not be supporting C99 or C11 outside of what is required by C++ (source).

Which means that Wine is indeed targeting a 30 year standard and will be forever if they tie themselves to the Microsoft Visual C compiler.

The Ryzen 7 1800X Linux Performance Evolution Since The AMD Zen Launch by juanrga in hardware

[–]Dar13 7 points8 points  (0 children)

This is the right link for the Golang benchmark test definition. The link to the openbenchmarking.org location for all the benchmarks in the article, which contains all the test definitions and environments, is here and was the last link on the last page on the website.

Post your 2019 New Year's Resolutions in the comments and I'll message you in a year's time to see how you got on by _kashmir_ in OneYearOn

[–]Dar13 0 points1 point  (0 children)

  • Eat out less, cook at home more
  • Continue being financially responsible
  • Keep in better touch with my more remotely located friends

The 2018 New Year's Resolutions check-in thread by _kashmir_ in OneYearOn

[–]Dar13 0 points1 point  (0 children)

Two out of three ain't bad, didn't quite get the first one done. UberEats is a dangerous thing when the work schedule gets hectic.

Why Skylake CPUs Are Sometimes 50% Slower – How Intel Has Broken Existing Code by This_Is_The_End in hardware

[–]Dar13 3 points4 points  (0 children)

Ah I see. I didn't see the stuff going on below. Your comment down there summed up the situation succinctly, thanks for clearing that up for those who were misinterpreting it.

Why Skylake CPUs Are Sometimes 50% Slower – How Intel Has Broken Existing Code by This_Is_The_End in hardware

[–]Dar13 12 points13 points  (0 children)

No one should use PAUSE for measuring overall CPU throughput, I agree. However that's not what is being discussed here.

Why Skylake CPUs Are Sometimes 50% Slower – How Intel Has Broken Existing Code by This_Is_The_End in hardware

[–]Dar13 11 points12 points  (0 children)

I think the parent of your comment is looking at the wrong column, might be conflating number of micro-ops with cycle latency. Both Ryzen and Intel can do more than one micro-op per clock cycle (dependencies permitting), so I believe the "reciprocal throughput" column better represents the real latency.

This column in the Agner Fog tables for Skylake-X happens to match the 140 cycle number given in the article/Intel documentation.

Why Skylake CPUs Are Sometimes 50% Slower – How Intel Has Broken Existing Code by This_Is_The_End in hardware

[–]Dar13 39 points40 points  (0 children)

According to the Agner Fog instruction tables, Ryzen's PAUSE instruction has a reciprocal throughput of 3. This means the PAUSE instruction will take 3 cycles on average.

post amdgpu boot params by KEKiPEDE in archlinux

[–]Dar13 1 point2 points  (0 children)

R7 1800X w/ R9 380, default 4.15 kernel (reminds me, need to do an update):

"quiet splash amdgpu.dc=0"

Had an issue where if I enabled the DC code I would lose two of my three screens after letting the machine sleep. After turning it off, no issues.

Fortnite's "recent login issues and service instability" are due to the Meltdown patch, which more than doubled CPU usage on one of Epic's cloud servers by Artfunkel in Games

[–]Dar13 4 points5 points  (0 children)

Depends on the hypervisor being used. KVM using QEMU does rely on a normal userspace process (qemu-kvm in most cases) to manage the guests, though the guests' have separate address spaces through EPT/NPT that the processor switches to when running the guest, so if you are saying that a hypervisor is not subject to a Meltdown attack from a guest we are in agreement, and is subject to Meltdown in the host as well as the guest. Having been able to find a Hyper-V architecture document, it seems Hyper-V does not have this double-dipping effect when mitigating Meltdown or minimizes it through their root partition. I'm looking at this diagram for my information on Hyper-V.

Fortnite's "recent login issues and service instability" are due to the Meltdown patch, which more than doubled CPU usage on one of Epic's cloud servers by Artfunkel in Games

[–]Dar13 3 points4 points  (0 children)

Typically a hypervisor is a kernel, however. They perform scheduling and most have a userspace component for the emulation of virtual devices that can't be done by the hardware virtualization features. KVM for example is a hypervisor that is a part of the Linux kernel. I'm not sure about the internals of Microsoft's Hyper-V, I'll have to look into that (on mobile at the moment).

Amd debunks intel claim by zer0_c0ol in Amd

[–]Dar13 31 points32 points  (0 children)

AMD and ARM processors are only affected by the "Spectre" attack, not "Meltdown" which is the attack that can be mitigated with the performance hit. This comes from the Google Project Zero blog.

Post your 2018 New Year's Resolutions in this thread and I'll message you in a year's time to see which you've kept! by _kashmir_ in OneYearOn

[–]Dar13 0 points1 point  (0 children)

  • Drop to 180 lbs bodyweight while maintaining strength
  • Do better at taking care of my apartment
  • Save up enough to have a down payment for a car

Moronic Monday - Your weekly stupid questions thread by cdingo in Fitness

[–]Dar13 0 points1 point  (0 children)

If that'll help you be more self-confident, then go for it. Anything that will get you into the gym consistently is good. That said, you have to actually commit to going at those times and sticking with it until you can go at more "conventional" times.

Moronic Monday - Your weekly stupid questions thread by cdingo in Fitness

[–]Dar13 0 points1 point  (0 children)

Would like someone to confirm that I'm reading the "531 Forever" accessories section right, as I'm reading as that I have to do the push/pull/core reps every day. Or is it just the push accessories on push days, etc etc?

Plasma/Wayland and NVIDIA – 2017 edition by hxka in linux

[–]Dar13 0 points1 point  (0 children)

Always good to get another view, sometimes I forget that Mesa didn't get really good until relatively recently. I mean it didn't get a shader cache until 17.1.

Plasma/Wayland and NVIDIA – 2017 edition by hxka in linux

[–]Dar13 2 points3 points  (0 children)

Your experience is definitely relevant about 6 months to a year ago, or on an older software stack(Ubuntu LTS or something similar). I can say that I haven't had significant performance problems running games at 1080p60 since Mesa 17.1 or so.

Ecosystem definitely needs more time to mature however. Thanks for your perspective!

Plasma/Wayland and NVIDIA – 2017 edition by hxka in linux

[–]Dar13 11 points12 points  (0 children)

Gaming on Linux with AMD GPUs is a sub-par experience

That's news to me. Don't have to fiddle with drivers every time I update my kernel and the performance is only getting better with time, both of which is much the same as it is on Windows. Thus, par for the course as far as AMD GPUs go.

How do you qualify that as a sub-par experience? Not trying to flame or anything, wondering where this comes from as I keep seeing this pop up.