The speed differences between programming languages are unlikely to matter in this sort of application. Most expensive operations are either just waiting on the network, or delegating to tools like tar/make/pacman that are written in other languages anyway. If there really are speed differences between different AUR helpers, it's more likely to be the result of different design decisions that aren't specific to the programming language used.
way easier to write and maintain
Whether Rust is easier to write than C is a bit controversial, but it's certainly true that Rust makes it easier to write "memory safe" code without any "undefined behavior", which is very important in the kernel.
I was wondering about this. If the next kernel is the LTS kernel, then isn't it just as bleeding edge as everything else? I feel like what I want (as a frequent Virtual-Machine-with-random-kernel-modules user) is a kernel version that's been in the wild for a year or so, where trivial build issues and incompatibilities have already been ironed out. LTS can't really be that thing, if the newest kernel release is also the LTS kernel. Is anything else...that thing?
I could be wrong, but I don't think the issue is memory mapping per se. (Note that --num-threads=1 doesn't disable memory mapping. There's a separate flag, --no-mmap.) I think the issue is seeking and non-sequential reads. If we implemented the parallel tree traversal bits with file handles instead of the mapped buffer, I think the result would be the same. But I admit I haven't tried it.
One thing we'd like to do in the medium term is parallelize things "from the front" rather than "from the top". So instead of saying "thread 1 gets the left half, thread two gets the right half", we'd do something like "read sequential 64 KiB chunks from the front of the file, and have threads 1 and 2 alternate hashing them." The threading overhead will be a bit higher, but I think the end result can be close to what we get today, and the sequential read order will make today's thrashing problem go away.
I want to highlight an issue we've noticed that might come up for some folks here. By default b3sum memory maps its input and uses multiple threads to hash different parts of it. That's great when the file is cached in RAM, and probably ok when it's on an SSD. But when the file's on a spinning disk and not cached (or just too big to cache), this seems to thrash the disk and tank performance. If you run into this, --num-threads=1 is a workaround. And if that does help, I'd be curious to hear about it on that linked GitHub issue if you have time to report it.
Nice to know it's not just me :-D I haven't done anything apart from the defaults with sshd.conf. And yeah, I think I've noticed different rates on different boots too.
It didn't seem to help, but you're right that I should've tried it. (Naively I would've thought that any cache that could be voluntarily cleared by the kernel would be cleared before invoking the OOM killer.)
I run Arch on my laptop, and I run Arch on my personal webserver, and that just makes things simpler for me. No need to think about what version of Tmux is available in which environment, etc. Restarting my personal server every week to work around this isn't a particular problem for me, but I figured I should try to understand it properly :)
Every application should always have a primary window and this window should always be raised when the application is launched. This is important, as it ensures consistent and predictable behavior.
Dropbox doesn't have a primary window on Windows or Mac. Are they planning to invent one for Gnome? Or is the idea that the Dropbox settings panel supposed to come up every time I boot my machine? Or do they not mean "every application should always" as literally as it sounds like they do?
Incidentally, TopIcons is a great plugin, but it was also hard crashing Gnome Shell with some frequency for me in 3.24. It's not clear to me yet whether that bug is fixed in 3.26. It might be? (https://github.com/phocean/TopIcons-plus/issues/88)
If I understand your question, you want to run "make install" but also have pacman know about all the files that get installed? There's no way to do that I know of, but your closest bet is to find an AUR package that's close to what you want and tweak it's MAKEPKG file.
It depends on how you install it. If you run makepkg to build a package and then sudo pacman -U ... to install it, then of course pacman does know about it. AUR clients like yaourt generally do this under the covers. So if you run pacman -Qs foo for your AUR package foo, you'll find that pacman does know about it. I think you were a little big vague in your question about whether you were using these methods, or whether you were doing something totally unrelated to pacman, like ./configure && make && make install.
This update bricked hosed my system. Booting stopped at "reached graphical interface" and I couldn't access any ctrl-alt-f* consoles either. I had to boot from USB and replace the proprietary nvidia drivers with nouveau, which fixed everything. Not sure about the underlying cause. Anyone else with a similar issue?
If gnome session doesn't work at all, I'd say fix that problem first, before you try to fix anything more subtle. It may be that you're already doing all the right things for your mouse, but you can't tell because of the broader gnome issues.
In this (interesting if not entirely practical) scenario, the attacker does two things with your laptop:
installs malicious USB firmware / keyloggers
copies all the encrypted data on your disk
When the attacker gets a copy of your password and boot partition in the future, they can use that to read the encrypted data they took in the past. Changing your passwords can only protect future data.
Just for the sake of a fun thought experiment, what's to stop someone from replacing your entire laptop with a clone that sends all your keystrokes and USB data to evil.com? Maybe you'll notice after you boot up and all your files are missing, but by that point the bad guy has all your secrets, and your original laptop :)
No. I think disk encryption is reasonable if you're worried about regular theft, but I don't see the point in doing fancy things with /boot. If someone's going to go through the trouble of secretly bugging my laptop, they might as well install a hardware key logger or malicious USB firmware or whatever other terrifying thing. At the end of the day you kind of have to assume your hardware is trustworthy.
https://xkcd.com/1053/
The speed differences between programming languages are unlikely to matter in this sort of application. Most expensive operations are either just waiting on the network, or delegating to tools like tar/make/pacman that are written in other languages anyway. If there really are speed differences between different AUR helpers, it's more likely to be the result of different design decisions that aren't specific to the programming language used.
Whether Rust is easier to write than C is a bit controversial, but it's certainly true that Rust makes it easier to write "memory safe" code without any "undefined behavior", which is very important in the kernel.
I was wondering about this. If the next kernel is the LTS kernel, then isn't it just as bleeding edge as everything else? I feel like what I want (as a frequent Virtual-Machine-with-random-kernel-modules user) is a kernel version that's been in the wild for a year or so, where trivial build issues and incompatibilities have already been ironed out. LTS can't really be that thing, if the newest kernel release is also the LTS kernel. Is anything else...that thing?
Yeah I figured that was you when you mentioned NVMe drive rates :)
I could be wrong, but I don't think the issue is memory mapping per se. (Note that
--num-threads=1doesn't disable memory mapping. There's a separate flag,--no-mmap.) I think the issue is seeking and non-sequential reads. If we implemented the parallel tree traversal bits with file handles instead of the mapped buffer, I think the result would be the same. But I admit I haven't tried it.One thing we'd like to do in the medium term is parallelize things "from the front" rather than "from the top". So instead of saying "thread 1 gets the left half, thread two gets the right half", we'd do something like "read sequential 64 KiB chunks from the front of the file, and have threads 1 and 2 alternate hashing them." The threading overhead will be a bit higher, but I think the end result can be close to what we get today, and the sequential read order will make today's thrashing problem go away.
I want to highlight an issue we've noticed that might come up for some folks here. By default
b3summemory maps its input and uses multiple threads to hash different parts of it. That's great when the file is cached in RAM, and probably ok when it's on an SSD. But when the file's on a spinning disk and not cached (or just too big to cache), this seems to thrash the disk and tank performance. If you run into this,--num-threads=1is a workaround. And if that does help, I'd be curious to hear about it on that linked GitHub issue if you have time to report it.Nice to know it's not just me :-D I haven't done anything apart from the defaults with sshd.conf. And yeah, I think I've noticed different rates on different boots too.
It didn't seem to help, but you're right that I should've tried it. (Naively I would've thought that any cache that could be voluntarily cleared by the kernel would be cleared before invoking the OOM killer.)
I run Arch on my laptop, and I run Arch on my personal webserver, and that just makes things simpler for me. No need to think about what version of Tmux is available in which environment, etc. Restarting my personal server every week to work around this isn't a particular problem for me, but I figured I should try to understand it properly :)
Wow, yes, that was kind of painful to read.
What's the expectation for e.g. Electron exposing these new APIs to cross-platform Electron apps? Is that going to happen?
From their wiki guidelines:
Dropbox doesn't have a primary window on Windows or Mac. Are they planning to invent one for Gnome? Or is the idea that the Dropbox settings panel supposed to come up every time I boot my machine? Or do they not mean "every application should always" as literally as it sounds like they do?
Incidentally, TopIcons is a great plugin, but it was also hard crashing Gnome Shell with some frequency for me in 3.24. It's not clear to me yet whether that bug is fixed in 3.26. It might be? (https://github.com/phocean/TopIcons-plus/issues/88)
Maybe you mean the system tray. It's been completely removed in 3.26. But if you use an extension like TopIcons, that will still work.
Confirmed with a full restart. The bug is not fixed in 3.22.14-1.
Edit: Clarified in the bugzilla thread above, the fix requires a corresponding Wayland change that's going to ship in mutter-3.24.2.
Is it? I think I can repro the issue.
The ALA is extremely helpful for reverting/debugging these issues: https://wiki.archlinux.org/index.php/Arch_Linux_Archive
That can be a self-fulfilling prophecy.
If I understand your question, you want to run "make install" but also have pacman know about all the files that get installed? There's no way to do that I know of, but your closest bet is to find an AUR package that's close to what you want and tweak it's MAKEPKG file.
It turns out the Wiki has an article on this: https://wiki.archlinux.org/index.php/Kodi
It depends on how you install it. If you run
makepkgto build a package and thensudo pacman -U ...to install it, then of course pacman does know about it. AUR clients like yaourt generally do this under the covers. So if you runpacman -Qs foofor your AUR package foo, you'll find that pacman does know about it. I think you were a little big vague in your question about whether you were using these methods, or whether you were doing something totally unrelated to pacman, like./configure && make && make install.So...this Gnome update was expected to break everyone using the nvidia driver? Was there an announcement I missed?
This update
brickedhosed my system. Booting stopped at "reached graphical interface" and I couldn't access any ctrl-alt-f* consoles either. I had to boot from USB and replace the proprietary nvidia drivers with nouveau, which fixed everything. Not sure about the underlying cause. Anyone else with a similar issue?If gnome session doesn't work at all, I'd say fix that problem first, before you try to fix anything more subtle. It may be that you're already doing all the right things for your mouse, but you can't tell because of the broader gnome issues.
And in particular, xf86-input-libinput. This fixed mouse config issues for me.
In this (interesting if not entirely practical) scenario, the attacker does two things with your laptop:
When the attacker gets a copy of your password and boot partition in the future, they can use that to read the encrypted data they took in the past. Changing your passwords can only protect future data.
Just for the sake of a fun thought experiment, what's to stop someone from replacing your entire laptop with a clone that sends all your keystrokes and USB data to evil.com? Maybe you'll notice after you boot up and all your files are missing, but by that point the bad guy has all your secrets, and your original laptop :)
No. I think disk encryption is reasonable if you're worried about regular theft, but I don't see the point in doing fancy things with /boot. If someone's going to go through the trouble of secretly bugging my laptop, they might as well install a hardware key logger or malicious USB firmware or whatever other terrifying thing. At the end of the day you kind of have to assume your hardware is trustworthy.