Earlier quoted context omitted.
zswap makes swap useful on the server as it results in gradual slowdown when the system has used all the ram. And if the system runs at 75% of CPU, then there is room for such slowdown.
I hadn't heard of zswap [0]: "Zswap is a lightweight compressed cache for swap pages. It takes pages that are in the process of being swapped out and attempts to compress them into a dynamically allocated RAM-based memory pool. [...] Zswap is a new feature as of v3.11 [...] zswap is a work in progress and should be considered experimental." The return of RAM Doubler! The naming is initially confusing if you're alread…
Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
141–150 of 175 posts
Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
#142Earlier quoted context omitted.
Funny, but Linux is the only unix-like OS I've ever run where using swap means you have a problem. Other OSes have much more intelligent memory management.
heh, try using Windows when it goes into swap, Windows both desktop and server additions have the worst memory management I've ever seen and having no ZRAM and a pig of a filesystem like NTFS really doesn't help either. Going into swap in Linux isn't a problem, it's a symtom of a misconfigured / provisioned server or an unhanled application memory leak, other than that the other only things that should cause it is in…
Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
#143Earlier quoted context omitted.
andrewshadura is right. Here's just one of your items that is bunkum, for an example. > their own custom [...] init system of Upstart when they could have contributed to System upstart was developed several years, just under half a decade, before systemd even existed; it was used by Fedora for three years.
It's true though that Canonical consistently "does their own thing" and then fails to establish it as a standard for whatever reason (technical, political, CLA...). Anyone who adopted the new thing then has to migrate. Eucalyptus vs OpenStack (ever heard of Eucalyptus?) Bazaar vs Git (Git won) LaunchPad vs Github (LaunchPad is alive and well, but Github won the popularity contest) Wayland vs Mir (Wayland won) upstart…
Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
#144Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
#145Earlier quoted context omitted.
Errr.. the linked article means no, it is not safe to just cron an apt-get upgrade. In theory Debian is maintaining ABI/API. In practice there are issues. Rolling releases in practice have better tradeoffs, but require continuous deployment. On a workstation there are really no significant issues. On a production infrastructure, you need to use poudriere to maintain your own repos and orchestrate a branching and inst…
>Errr.. the linked article means no, it is not safe to just cron an apt-get upgrade. In theory Debian is maintaining ABI/API. In practice there are issues. Rolling releases in practice have better tradeoffs, but require continuous deployment. On a workstation there are really no significant issues. On a production infrastructure, you need to use poudriere to maintain your own repos and orchestrate a branching and ins…
That reason is because it's free software, even the FSF thinks it's fine to use ZFS on your system. The issue is whether it's fine for the ZFS module to be distributed with the Linux kernel.
And automatically updating ports is easy. Set up Poudriere somewhere to build every night, log in, check security notices, and install the already compiled packages.
Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
#146Earlier quoted context omitted.
Yeah, Ubuntu still keeps running out of space in /boot by filling it w old kernels in the default partition profile. A bug that I've been hitting since about 2011. In spite of their best efforts, it is not the "grandma friendly" quality software it hoped to be.
Honestly, the amount of regressions, packaging problems, hacky fixes, non-stardard configuration and poorly set defaults in Ubuntu is disgusting, look at how bad NetworkManager was / is on it, it's not that bad on Fedora (not that I like it that much) and the whole debarcle with them doing Unitiy on top of Gnome rather than contributing to the community projects, or recently when they released an update that broke al…
Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
#147It's not just a bunch of people setting cm.swappieness to 0 is it? That behaviour changed and now prevents going into swap /ever/ where it used to mean go into swap as a last resort. Changing it to 1 fixes the issue and will act like the old behaviour or only swapping as a last result. Regardless, it's things like this why we never recommend people use Ubuntu - years of poorly packaged and tested software. If you wan…
Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
#148Earlier quoted context omitted.
I used to use this to clean boot. dpkg -l 'linux- ' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(. \)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ] \). /\1/;/[0-9]/!d' | xargs -p sudo apt-get -y purge
What does it do?
Just looking at it though, it looks like it'll purge kernel packages that are the currently booted one. I don't have a system handy to check though so take that with a grain of salt.
Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
#149Earlier quoted context omitted.
I used to use this to clean boot. dpkg -l 'linux- ' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(. \)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ] \). /\1/;/[0-9]/!d' | xargs -p sudo apt-get -y purge
What does it do?
# mystery one-liner from https://news.ycombinator.com/item?id=13513171
# dpkg -l 'linux-' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]\)./\1/;/[0-9]/!d' | xargs -p sudo apt-get -y purge
# my corrected/improved version:
noncurrent_kernel_pkgs() { dpkg -l 'linux-*[0-9]*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.\)-\([^0-9]\+\)/\1/")"'/d;s/^ii *\([^ ][^ ]*\)[^ ]*.*/\1/' ; }
# corrections/(possible-)improvements:
# - dpkg -l 'linux-' # returns nothing
# - dpkg -l 'linux-*[0-9]*' # moves 'pkgnm must contain a number' rule (last sed cmd in orig: '/[0-9]/!d') forward
# - pkgnm isolation/extraction was broken (did dpkg output change?)
output: kg@kg-VirtualBox:~$ noncurrent_kernel_pkgs
linux-headers-4.4.0-43
linux-headers-4.4.0-43-generic
linux-headers-4.4.0-45
linux-headers-4.4.0-45-generic
linux-headers-4.4.0-53
linux-headers-4.4.0-53-generic
linux-headers-4.4.0-57
linux-headers-4.4.0-57-generic
linux-image-4.4.0-43-generic
linux-image-4.4.0-45-generic
linux-image-4.4.0-53-generic
linux-image-4.4.0-57-generic
linux-image-extra-4.4.0-43-generic
linux-image-extra-4.4.0-45-generic
linux-image-extra-4.4.0-53-generic
linux-image-extra-4.4.0-57-generic
kg@kg-VirtualBox:~$ uname -r
4.4.0-59-generic
kg@kg-VirtualBox:~$Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59
#150I stopped using Ubuntu after Amazon affiliate marketing showed up on the desktop. I stopped using Arch after I read the source code for SystemD. FreeBSD had quite a learning curve, but now it's on my laptops and is my preferred server OS. I love DTrace. I love ZFS. I love pf. I love Jails. I love ports, even though I generally use pkg. I love how easy it is to compile a kernel. The FreeBSD handbook is awesome. All th…
Can you provide any good entry points to the BSD world?
* NetBSD Guide: https://netbsd.org/docs/guide/en/
* FreeBSD Handbook: https://freebsd.org/doc/handbook/book.html
* DragonFlyBSD Handbook: https://www.dragonflybsd.org/docs/handbook/
* TrueOS User Guide: https://www.trueos.org/handbook/trueos.html
* PC-BSD User Guide: http://web.pcbsd.org/doc-archive/10.1.2/html/pcbsd.html (viewable off-line directly in both PDF and HTML forms in /usr/local/share/pcbsd/doc/)