Live data from Hacker News

Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

bugs.launchpad.net

141–150 of 175 posts

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#141
post #94
post #75

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…

It's actually quite useful on many consumer devices, especially those with multiple cores. Most of the time I'm happy I can trade a few CPU cycles for better I/O performance.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#142
post #28

Earlier 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…

Incidentally, at least on Windows, you can save a ton of harddrive space by changing your swap settings - the default is crazy high, especially if you have lots of RAM.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#143
post #137
post #112

Earlier 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…

I guess they need to buy more project managers...

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#144

Earlier quoted context omitted.

he got some details wrong but the frustration is real, especially if you have anything slightly off standard, like a multi monitor setup or, god forbids, a touch screen.

I have a touchscreen. Works great nowadays.

even pressure?

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#145
post #43

Earlier 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…

>For some reason, all of a sudden everyone thinks that ZoL is legally safe to use. I'm not a lawyer, but whatever.

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

#146
post #7

Earlier 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…

a short point of order: Upstart existed and shipped long before Systemd existed, Infact Red Hat Enterprise Linux 6 shipped with Upstart. It was the shortcomings in Upstart that led to the development of Systemd. If you're using RHEL 6 you're using Upstart.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#147
post #2

It'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…

It's not -- I'm getting OOM on some java processes and my swappiness is set to 60.

Re: Ubuntu 16.04: “Out of memory” errors after upgrade to 4.4.0-59

#148
post #77

Earlier 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?

Take off the xargs part of the command and run it to see. :-D

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

#149
post #77

Earlier 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?

I tried it on Lubuntu 16.04; it required modification:

   # 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

#150
post #12

I 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?

There are several, depending from what one wants. TrueOS, formerly known as PC-BSD, is a good entry point if one wants a desktop-style system. Or one can try vanilla FreeBSD. Or OpenBSD. Have some user guides and Handbooks to read:

* 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/)

Post reply on HN