htop is reporting quite high memory usage reddit / freebsd ---------------------------------------------------------------------- tambow44 · 2022-06-15 19:08 And? Which processes are responsible? Htop will tell you. ---------------------------------------------------------------------- jllauser · 2022-06-15 19:09 Pretty sure this is a bug. It's reporting 16 \_zettabytes\_ used. ---------------------------------------------------------------------- tambow44 · 2022-06-15 19:09 What does top show? ---------------------------------------------------------------------- jllauser · 2022-06-15 19:10 About 1500 MB. ---------------------------------------------------------------------- tambow44 · 2022-06-15 19:12 Okay. What version of FreeBSD are you running? Same question for htop. E: I’m on thomas@flute:~ $ htop --version htop 3.2.0 thomas@flute:~ $ uname -a FreeBSD flute 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64 Working fine for me. I’m using a VPS, intel. ---------------------------------------------------------------------- jllauser · 2022-06-15 20:09 ``` $ htop --version htop 3.2.1 $ uname -a FreeBSD *redacted* 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64 ``` ---------------------------------------------------------------------- lenzo1337 · 2022-06-15 22:36 Pretty sure Z just means that it's ZFS holding memory? That's all I can come up with for the moment as it shows up like that for me too, and the yellow indicates cache for the memory module. Except that the ARK graph looks odd too ---------------------------------------------------------------------- IUseDebianBTW · 2022-06-15 22:56 Probably just a memory leak somewhere ---------------------------------------------------------------------- lenzo1337 · 2022-06-15 23:06 Found that it's a common issue, think that it subtracts the arc cache from the actual memory usage when it updates, then it's wraps around backward all the way to the top. [htop\_issues\_863](https://github.com/htop-dev/htop/issues/863) ---------------------------------------------------------------------- [deleted] · 2022-06-15 23:18 [removed] ---------------------------------------------------------------------- spacebass · 2022-06-16 00:29 Worth noting, htop on FreeBSD doesnt work quite the same as it does on Linux. Best to use good ole top ---------------------------------------------------------------------- grahamperrin · 2022-06-16 04:06 [Mem: 16.0Z on FreeBSD · Issue #1039 · htop- dev/htop](https://github.com/htop-dev/htop/issues/1039) Thanks to /u/lenzo1337 for pointing us in the right direction. Also, thanks to /u/jllauser for showing that I'm not alone (my post in FreeBSD Forums). Your post is now marked as *answered*. ---------------------------------------------------------------------- Guru4GPU · 2022-06-16 06:06 What version of htop do you use? Have you tried reinstalling it (pkg install -f htop)? This is one of my TrueNAS 12 and FreeBSD 13.1-RELEASE Servers (VPS) and it uses htop 3.0.2/3.2.1: [https://imgur.com/a/bY3VKAb](https://imgur.com/a/bY3VKAb) Until now, I only saw this bug with some of my TrueNAS 12 Jails some time ago, now htop works everywhere (FreeBSD 12.3, 13.0, 13.1) ---------------------------------------------------------------------- hgshepherd · 2022-06-16 09:54 Finally someone's developed a FreeBSD port of the infamous Connectix RAM Doubler. ---------------------------------------------------------------------- setwindowtext · 2022-06-16 10:25 16 zettabytes sounds exactly like 2^64 bytes. Htop must be using unsigned integers, which underflow. ---------------------------------------------------------------------- EtherealN · 2022-06-16 18:44 The classic Gandhi problem. Prepare for nuclear weapons. Edit: thankyou, bot? ---------------------------------------------------------------------- GANDHI-BOT · 2022-06-16 18:44 You must not lose faith in humanity. Humanity is like an ocean; if a few drops of the ocean are dirty, the ocean does not become dirty. Just so you know, the correct spelling is [Gandhi](https://en.wikipedia.org/wiki/Mahatma_Gandhi). ---------------------------------------------------------------------- tambow44 · 2022-06-16 23:59 Did you build htop from source? Pkg latest is 3.2.0. ---------------------------------------------------------------------- grahamperrin · 2022-06-17 00:45 > What version of htop do you use? I can't speak for the opening poster, but the most recent version 3.2.1 is bugged. Please see ---------------------------------------------------------------------- Guru4GPU · 2022-06-17 07:25 I just remembered that my FreeBSD 13.1-RELEASE Host runs on top of UFS, not ZFS, that's why I'm not affected 😅 ---------------------------------------------------------------------- grahamperrin · 2022-06-18 08:24 > … Best to use good ole top Some people find it much easier to work with htop. Let's remain focused on htop, thanks. ---------------------------------------------------------------------- spacebass · 2022-06-18 13:16 Ok. I’m pointing out that htop doesn’t behave in FreeBSD the way it does in Linux. And maybe the high memory usage is inaccurate. In other words, maybe the tool is the problem. ---------------------------------------------------------------------- grahamperrin · 2022-06-18 13:18 > … maybe the tool is the problem. – please see progress in the linked issue. Thanks. ---------------------------------------------------------------------- edthesmokebeard · 2022-06-19 03:35 Another reason htop sucks. ---------------------------------------------------------------------- grahamperrin · 2022-06-19 18:56 > Pkg latest is 3.2.0. `3.2.1` under *latest* at ---------------------------------------------------------------------- grahamperrin · 2022-06-19 19:00 > sucks. The developer provided a workaround less than eight hours after receiving the report. This is great, it does **not** suck. I'm now free from the bug. In addition: the maintainer of the port is aware of the issue, and is prepared to update the port ahead of changes upstream. ---------------------------------------------------------------------- grahamperrin · 2022-06-20 06:15 `thomas@flute:~ $ htop --version htop 3.2.0 thomas@flute:~ $ uname -a FreeBSD flute 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64` Off-topic from the memory *bar* (pictured in the opening post), this is convenient for me: * with `3.2.0` on `13.1-RELEASE`, does the memory **graph** work for you? Compare with my `3.2.1` on `14.0-CURRENT` pictured in the issue below. Thanks. [Memory graph flatline on FreeBSD · Issue #1040 · htop- dev/htop](https://github.com/htop-dev/htop/issues/1040) (Memory graph flatline to the left. Disk graph working as expected, to its right.) ---------------------------------------------------------------------- grahamperrin · 2022-06-20 06:53 All the years I used htop, I never realised that ARC options exist. Now enabled (in the screenshot below): *ZFS ARC [Bar]* and *ZFS ARC [Text]* https://user-images.githubusercontent.com/192271/174535204-5f5e2d1b- 531f-4fe7-8ce0-abc6aed33ab4.png ---------------------------------------------------------------------- lenzo1337 · 2022-06-21 02:47 Yeah it's a pretty cool feature. I only found out about it recently after reading the whole man page and the platform.c source files all the way through. ---------------------------------------------------------------------- grahamperrin · 2023-02-18 13:08 reopened.