7 ms·
OpenBSD: Hibernate Time Reduced
- ggm 5y agoNot identical but related: do compilers tune with the OS to get code and data into L1 cache? I believe so, I want to believe you can compile to avoid mem fetch, let alone disc. E.g. if I know my AES needs a 20k table, does the compiler know how to make this apparent to the CPU farm so its never out of L1? I continue to believe a 2cpu 1mb L1 cache is faster than 2 cpu, 2HT, 512k L1 cache. 4x fake CPUs and less L1 doesn't beat true cpu and lots of cache on die. But, I might be wrong!
- adrianN 5y agoProfile guided optimization can help compilers put data in the right place, but in general compilers are not very good at that.
- ggm 5y agoA Friend was writing a tester (UDP dns, preformed packets) and said he was able to code it so the entire test program fitted in L1. He then did some work on cpu affinity, for this code and for the IP stack. IP fits in amazingly small space, 25k in pdp11 pre-risc architecture. I think he said he was saturating multi gigabit links. Lot of hand coding going on however. Probably asm.
- deleted 5y ago[deleted]
- kristjank 5y agoGreat to hear that; Getting closer to running it as a bare-metal desktop OS by the day.
- nix23 5y agoLook being a great fan of BSD (especially FreeBSD), i have one big problem with all of them on my laptop....and it is Wireless! A max speed of ~650kb/s is just not a usable one today. Well and on the workstation that you cannot change fanspeed on a AMD-GPU, those are my 2 big-points.
- messe 5y ago> A max speed of ~650kb/s is just not a usable one today What card model, how do you have it configured, and how far from the router are you? 650kb/s is not an inherent limit on any BSD, and much higher speeds are easily possible if you have supported hardware.
- juped 5y agoOpenBSD is well known to have a weak 802.11 stack that only supports a/b/g/sorta n modes on the most common drivers (Intel). This is not because OpenBSD somehow sucks, it's because there's approximately two people doing all the wireless development in their spare time. But it's very understandable that someone would find it to be an issue. FreeBSD probably doesn't have this issue, but it's not exactly trivial to port a device driver.
- messe 5y agoAs a user, I'm well aware of the state of OpenBSD's wireless stack. It's slower than the competition, but it's not 650kb/s slow.
- nix23 5y agoIts a Intel Dual Band Wireless-AC 7265NGW (ThinkPad x250) running with 802.11/g (the maximum), with the right driver and firmware. Sitting about 5m from the hotspot. BTW: The hardware is supported: https://www.freebsd.org/cgi/man.cgi?iwm(4) https://www.freebsd.org/cgi/man.cgi?iwm(4) >device iwm7265fw >Currently, iwm only supports 802.11b and 802.11g modes. https://www.freebsd.org/cgi/man.cgi?query=iwmfw&sektion=4&apropos=0&manpath=FreeBSD+13.0-RELEASE+and+Ports https://www.freebsd.org/cgi/man.cgi?query=iwmfw&sektion=4&ap... >iwm7265Dfw_load="YES" -> This one works >iwm7265fw_load="YES" -> This one is not working I would say OpenBSD is as behind as every single BSD is...from the Wireless standpoint.
- juped 5y agowhat's in your way?
- onedr0p 5y agoCompatibility. Linux binaries need to be recompiled on BSD. BSD and Docker or Podman is probably not a thing. Working with containers and Kubernetes means I need to compile about 100 Go projects. Uhh.. just no. I have better things to do with my time.
- nix23 5y ago>Linux binaries need to be recompiled on BSD Ehhm NO: https://docs.freebsd.org/en/books/handbook/linuxemu/ https://docs.freebsd.org/en/books/handbook/linuxemu/ >BSD and Docker or Podman is probably not a thing. True but you can try: https://bastillebsd.org/ https://bastillebsd.org/ >Working with containers and Kubernetes means I need to compile about 100 Go projects Ehhm NO: pkg install kubectl It really sound's you dont even read the FreeBSD Handbook.
- onedr0p 5y ago> >Linux binaries need to be recompiled on BSD > Ehhm NO: > https://docs.freebsd.org/en/books/handbook/linuxemu/ https://docs.freebsd.org/en/books/handbook/linuxemu/ Keyword in that link is most binaries. I don't want to worry about if binary x won't run and be stuck compiling it for BSD. > >BSD and Docker or Podman is probably not a thing. > True but you can try: > https://bastillebsd.org/ https://bastillebsd.org/ That is not the same thing compared to Docker or Podman at all. If your looking to build Docker images locally to test in a kubernetes cluster good luck with bastille. > >Working with containers and Kubernetes means I need to compile about 100 Go projects > Ehhm NO: > pkg install kubectl What about stern, kubie, and the hundred other cli tools that makes managing a cluster much easier? I get BSD is not for the faint hearted like me who just wants things to work. I'd rather spend my time elsewhere than worrying or running into issues using a esoteric operating system.
- 5y ago
- tharne 5y agoTo echo another commenter - What's stopping you? OpenBSD is super easy to install and set up, provided you do a little homework and make sure your hardware is supported. I have it running on an old think pad and it's a great daily driver. The only thing that gets in your way is that you're going to be missing a handful of applications you might want to run, particularly anything using electron. But there are enough application out there, that you should be able to find suitable alternatives.
- awesomelvin 5y agoThe main problem for me is the Widevine incompatibility. While many people see this as an advantage, I actually do enjoy the convenience of using Netflix/Spotify instead of Torrents/alternative clients.
- kiwijamo 5y agoOut of interest what does similar numbers look like on Windows, Linux, etc?
- _wolfie_ 5y agoMy personal laptop takes what, ~8s (at 16GB ram)? My work laptop (32GB) is around ~25s I think, but I'm not using the hibernation there since in-kernel amdgpu driver does not survive the restore from it.
- rescbr 5y agoIf you want to make hibernation happen on you work laptop, you might want to try bundling the AMDGPU driver in the kernel (as opposite of building it as a module). It was the only way I managed to make hibernation work on a Intel NUC.
- santix 5y agoThe code change on GitHub: https://github.com/openbsd/src/commit/56bc0efbd80da2ff595e44601f8d41473418bf4a https://github.com/openbsd/src/commit/56bc0efbd80da2ff595e44...