unperson

joined 4 years ago
[–] unperson@hexbear.net 2 points 1 week ago* (last edited 1 week ago) (1 children)

I'm not a medic and sorry if you've already tried this, but your gut and mood issues sound a lot like a food allergy. Did you try cutting for two weeks the typical allergens? Try one at a time with gluten, lactose/casein, animals, legumes (soy derivatives in particular), nuts (peanuts in particular) and see if anything improves

[–] unperson@hexbear.net 53 points 2 weeks ago (6 children)

12,000 consoles … for an estimated value of more than 47.5 million euros.

Each console costs 40 grand? doubt

[–] unperson@hexbear.net 2 points 1 month ago* (last edited 1 month ago)

One thing I'd really like to do is learn what the default install of Mint+Cinnamon is doing, how to go over the different components, how to pick and choose what i want this thing doing. I didn't find the official documentation overly helpful, troubleshooting the install aside, so i wanted to ask here

It sounds like, as soon as you get half-comfortable, you should install Arch.

This is not a meme, your question is exactly what archlinux exists for.

Don't use the installer, follow the good old https://wiki.archlinux.org/title/Installation_guide

Good luck, don't take Arch too seriously.

[–] unperson@hexbear.net 11 points 1 month ago* (last edited 1 month ago)

Barber shop at 451 W 46th St, New York

[–] unperson@hexbear.net 15 points 1 month ago (1 children)

Fidel and Che meeting in Mexico, colorised.

[–] unperson@hexbear.net 9 points 2 months ago* (last edited 2 months ago) (1 children)

I bought a second-hand xperia 5 III last week. Edit: Flashed lineageos and a magisk module to use the stock camera.

The naming scheme is confusing, the first number is the price range, where 1 is the most expensive, 5 the sweet spot, 10 the "budget" model, then the second number is the generation, I < II < III < IV < V < VI.

[–] unperson@hexbear.net 14 points 2 months ago (3 children)

Recently I found out about sony xperias.

  • Decent price second hand
  • decent specs, snapdragon CPU
  • Unlockable bootloader
  • Very good camera, not bricked by unlocking the bootloader
  • LineageOS support on some models
  • Headphone jack
  • Double SIM + eSIM
  • micro SD card
  • Large battery
  • Easy to repair
[–] unperson@hexbear.net 9 points 2 months ago (7 children)

For smartphones I think a significant driver of their ever-increasing sizes is that battery technology is lagging behind power demand. The worst thing of having a small phone these days is that the battery lasts less than a day. Big screens used to be too power hungry to be practical but LEDs are extremely efficient these days.

My prediction is that we'll return to the miniaturization craze of the 1990s whenever the next breakthrough in battery technology happens.

[–] unperson@hexbear.net 3 points 3 months ago

Huh, when I set it up zsmalloc wasn't finished and never deallocated. But it seems that today it's the right choice! Thanks.

[–] unperson@hexbear.net 3 points 3 months ago* (last edited 3 months ago) (1 children)

am i right that you can create zswap block devices and mount them like with zram? (eg. mounting /var/tmp)

zswap is a "front swap", it needs a backing swap to function that's crucial to the design. It automtically goes in front of all the swaps you have enabled.

You could probably put the backing swap on a loop device on a tmpfs, but I don't know how it will handle the loopback. It's a better idea to put it on disk. It can be a slow or write-limited disk, it will not get used much. You definitely should not use zram and zswap at the same time.

[–] unperson@hexbear.net 80 points 3 months ago* (last edited 3 months ago) (5 children)

nerd excuse me the embargo has an exception for food and medicine

It's really easy you see, you just need to pass an inspection and get a written permission from the President of the US, the payment must be made in cash in US dollars before shipment and through some non-American bank, and the shipping company must go straight from a US port to a Cuban port and back with no layovers.

This is not a joke, it's what is actually written in the law.

[–] unperson@hexbear.net 3 points 3 months ago* (last edited 3 months ago) (2 children)

Yes, more or less, they are closely related:

In regular swap, when you're low on memory the kernel chooses some memory pages (low priority processes and least recently used) and writes them on disk on a file or partition. When the process that owns those pages need them back, the kernel goes fetch them one at a time. Since memory pages are 4KiB the speed on this depends on the 4k random access speed of your disk.

You can have more than one swap, and the order they are used depends on their priority, or on the order they were enabled in if you didn't specify any priority.

zram is a kind of swap space that, instead of writing to disk, compresses the pages and writes them back in RAM. You set an uncompressed size for it and if the pages don't compress well (usually encrypted on already-compressed data) then it will occupy the same amount of RAM. Since you can't tell in advance what the compressed size will be and there's no mechanism to stop it from filling up, you must be conservative on the size of zram. When the zram gets full all new pages will go to the next swap in priority order. This causes a problem where there's old data you don't care about taking RAM space in zram that cannot be reclaimed, and then your workload is going to regular swap which is slow.

zswap is a layer on top of swap, the technical name is "frontswap". For it to work you need to already have a swap configured. Before memory pages are written down on the swap file, they are compressed, and if the compression ratio is good enough the pages go to RAM instead of to the swap file. You set a compressed size for the zswap (by default, 20% of your total RAM) and when this limit gets full the least recently used pages are written to disk. The compression is so fast that you barely notice a hiccup while it's happening, it feels like you magically have 50% more RAM than before.

Answering your question, zswap is configured by kernel parameters, and now that you mention it it might work to put the parameters on the kernel cmdline instead of editing sysfs, this means configuring the boot loader and adding zswap.enabled=1 zswap.compressor=lz4 zswap.zpool=z3fold to the kernel cmdline.

view more: next ›