There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

What I Learned Using Linux This Week (05)

Not as much time to tinker this week, but I still had some fun and learned some things!

How to run a memory test using memtest86+

My error message is back, which means my nuke and pave approach didn’t solve the problem. So, yay to having a record of the error message?

Here’s the error:


<span style="color:#323232;">echo 0 > / proc/sys/kernel/hung_task_timeout_secs" disables this message.
</span><span style="color:#323232;">INFO: task txg_sync: 3557 blocked for more than 241 seconds.
</span><span style="color:#323232;">Tainted: P 0 5.15.0-94-generic #104-Ubuntu
</span>

I decided to do a little more searching and found that the txg_sync is a zfs task. I know zfs uses a lot of RAM as part of it’s processing. As a result/starting point, I decided to do a memory test to see if I messed up any of my RAM modules when I knocked the shit out of my server.

Running a memory test was really easy. I downloaded the latest memtest86+ ISO, used balena etcher to flash it to a usb stick, booted from that stick, and let the test run.

I let it run for two full passes and got no errors.

So as of right now I know that the error is being caused by zfs writes/activity, but I don’t know why the error is happening, other than that I fucked something up when I knocked the shit out of my server.

How to set up a wireguard tunnel

This also has been on my list of things to figure out for quite awhile, and, turns out, with the wg-easy project, it is exactly as easy as the name implies. I found out about wg-easy through the Awesome Open Source YouTube channel. I’ve learned a lot from the guy that runs that channel, so I always check there when I want to learn more about something. Timing was fortuitous, since he had just dropped his video on wg-easy.

I’ve got wg-easy running on my vps, and I’m planning to connect my playground server to it so I can ssh in and play around during my breaks at work.

Grav CMS is pretty nice

I’ve kind of idly been looking for an alternative to Wordpress. I found out about Grav while bouncing around Linux YouTube looking for things to learn about/try. I’ve already tried 11ty and Hugo ssgs and neither worked for me.

Grav on the other hand was easy to get up and running, is easy to theme, (Theming was the problem I kept running into for both 11ty and Hugo), can be managed through cli or webui, and can have content added through the webui, or, more importantly for me, from markdown files on the server.

Whether or not I’ll actually use it to deploy a site remains to be seen. I’ll continue to tinker with it while I decide if I want to migrate my wordpress site over to it.

jlow ,

Yeah, wg-easy is very cool 👍

BaumGeist ,

Tainted: P 0 5.15.0-94-generic #104-Ubuntu

What module(s) is tainting your kernel, and is that what’s causing the txg_sync to hang?

harsh3466 OP ,

I don’t know, and to be honest, I also don’t know how I’d go about finding out. I’ll have to see if I can figure it out.

harsh3466 OP ,

After some reading and learning, I’ve gotten this output, which appears to indicate that the tainted modules are all zfs modules.


<span style="color:#323232;">zfs 4112384 8 - Live 0x0000000000000000 (PO)
</span><span style="color:#323232;">zunicode 348160 1 zfs, Live 0x0000000000000000 (PO)
</span><span style="color:#323232;">zzstd 491520 1 zfs, Live 0x0000000000000000 (O)
</span><span style="color:#323232;">zlua 163840 1 zfs, Live 0x0000000000000000 (O)
</span><span style="color:#323232;">zavl 16384 1 zfs, Live 0x0000000000000000 (PO)
</span><span style="color:#323232;">icp 311296 1 zfs, Live 0x0000000000000000 (PO)
</span><span style="color:#323232;">zcommon 106496 2 zfs,icp, Live 0x0000000000000000 (PO)
</span><span style="color:#323232;">znvpair 98304 2 zfs,zcommon, Live 0x0000000000000000 (PO)
</span><span style="color:#323232;">spl 118784 6 zfs,zzstd,zavl,icp,zcommon,znvpair, Live 0x0000000000000000 (O)
</span>

I’m still reading, and honestly, not sure what to do with this information at this point.

harsh3466 OP ,

Turns out this is normal. OpenZFS is released under a different license that is not compatible with the GPL. As a result, ZFS modules are always considered out of tree/proprietary and will taint the kernel.

It also turns out that having a tainted kernel isn’t always a bad thing or a problem. Essentially using any proprietary software that loads kernel modules (Broadcom or Nvidia for example) means you’ve got a tainted kernel.

So while txg_sync hanging is also coincidentally an OpenZFS process, the ZFS modules tainting the kernel are not causing the hang, and txg_sync hanging is not the cause of the kernel being tainted.

LunchEnjoyer ,
@LunchEnjoyer@lemmy.world avatar

Didn’t know about Grav, I’ll check it out thanks 😊

harsh3466 OP ,

you’re welcome!

leanleft ,
@leanleft@lemmy.ml avatar

reading about recompiling debian kernel. it doesnt seem to be ohh soo much harder than gentoo. but it seems fairly uncommon and not as well supported. it is a shame…

harsh3466 OP ,

I haven’t been brave enough to try to compile my own kernel or install an OS like Arch. I’ve got a machine I can tinker with, and it’s on my list of things I want to learn how to do.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines