Linux

9429 readers
14 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
1
 
 

Original question by @POTOOOOOOOO@reddthat.com

2
3
4
5
1
submitted 3 weeks ago* (last edited 3 weeks ago) by bjoern_tantau@swg-empire.de to c/linux@programming.dev
 
 

In my relentless pursuit of trying to coax more performance out of my Lemmy instance I read that PostgreSQL heavily relies on the OSs disk cache for read performance. I've got 16 GB of RAM and two hdds in RAID 1. I've PostgreSQL configured to use 12 GB of RAM and I've zram swap set up with 8 GB.

But according to htop PostgreSQL is using only about 4 GB. My swap gets hardly touched. And read performance is awful. Opening my profile regularly times out. Only when it's worked once does it load quickly until I don't touch it again for half an hour or so.

Now, my theory is that the zram actually takes available RAM away from the disk cache, thus slowing the whole system down. My googling couldn't bring me the answer because it only showed me how to set up zram in the first place.

Does anyone know if my theory is correct?

6
7
 
 

I have a collection of DVDs and CDs that I’ve been meaning to archive. However, most of them must be scratched because whenever I try to read them, they get an I/O error in a random spot of one of the 1gb files. I heard that you can do some magic with ddrescue and possibly even read them in reverse, but don’t know the limitations of that when it comes to USB DVD readers. How can I copy these reliably?

8
9
10
11
1
submitted 3 weeks ago* (last edited 3 weeks ago) by cm0002@piefed.world to c/linux@programming.dev
12
13
14
15
 
 

"Set for a year-end release, AV2 is not only an upgrade to the widely adopted AV1 but also a foundational piece of AOMedia’s future tech stack.

AV2, a generation leap in open video coding and the answer to the world’s growing streaming demands, delivers significantly better compression performance than AV1. AV2 provides enhanced support for AR/VR applications, split-screen delivery of multiple programs, improved handling of screen content, and an ability to operate over a wider visual quality range. AV2 marks a milestone on the path to an open, innovative future of media experiences."

16
17
18
19
20
21
22
23
 
 

OC by @phantomwise@lemmy.ml

I've been trying nushell and words fail me. It's like it was made for actual humans to use! 🤯 🤯 🤯

It even repeats the column headers at the end of the table if the output takes more than your screen...

Trying to think of how to do the same thing with awk/grep/sort/whatever is giving me a headache. Actually just thinking about awk is giving me a headache. I think I might be allergic.

I'm really curious, what's your favorite shell? Have you tried other shells than your distro's default one? Are you an awk wizard or do you run away very fast whenever it's mentioned?

24
 
 

I made a small utility for listing the file names inside an archive file, e.g. tar, zip, etc. This comes in handy when you download some software package using the command line but you aren't sure whether to extract it in its own folder because you don't know what the file structure inside is.

25
view more: next ›