User talk:Rebeltrouper

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
Before creating a discussion or leaving a comment, please read about using talk pages. In particular, sign comments using ~~~~ and add new discussions at the bottom of the page. New discussions should be made visible with {{Talk|date = 2024-05-23}}.
== Discussion title ==

{{Talk|date = 2024-05-13}}

A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC)
: A reply [[User:Sally|Sally]] 11:29, 14 May 2024 (UTC)
:: Another reply [[User:Larry|Larry]] 03:54, 23 May 2024 (UTC)
:: Your reply ~~~~

Navigate to first:

Separate wiki page?

Talk status
This discussion is still ongoing.

Hey, I think you should create a separate wiki page for the use case about creating compressed /var/tmp/portage in zram parts of which you're inserting in the Zram page. There are plenty of use cases that zram could be used for and there are plenty of ways they can be implemented, so I think they should not be inserted in general pages like Zram one. Joro (talk) 15:51, 21 February 2023 (UTC)

Pages on a specific topic cover use cases. We currently have subjects that are spread over many pages on the wiki, and should be merged. If a subject is notable enough to go in it's own page, fine, but if it can live in a section that's fine too, and can avoid spreading things out and making organization more complicated. I'm just speaking in general terms, I really don't know what is best in this case - though the section in question does seem particularly short... -- Ris (talk) 09:39, 18 February 2023 (UTC)
Hello all,
Ah I see. New to adding things to the wiki in general. I can look around and try and merge some zram into a single page of usage. Was not sure of best place to put a short example for systemd as a whole. Some usage with modprobe and and direct echo may be benifical as well. Would this be the best course of action? I could write an outline on my userpage for a bit as a template. Rebeltrouper (talk) 23:18, 20 February 2023 (UTC)
Hello,
My only concern is that your examples were part of your use case and taken together they make sense, but taken separately, they'd produce unexpected results. For example you have two devices, one for swap and one for /var/tmp/portage, but one might want only one of the options. If they executed only your first example, they would have ended up with two devices and around 400 Mb of unusable RAM, because zram takes around 10% of the configured size, just for an empty device. You can imagine someone who compresses their RAM needs more of it, not less :) That's why I thought it would be a good idea to describe it in a separate page or something like that. OR maybe a separate paragraph. The other option is to edit your example such that it doesn't create two devices by default.
Best Regards,
Joro (talk) 15:51, 21 February 2023 (UTC)
Hello Joro,
Hmm I see what you mean. My thought process was that It would create 2 devices. I would only show them to use one of the two because if they are going to create zram for mounting on portage, they most likely want swap as well. I thought since it was empty it would not matter as I thought it would take up no space since it was not initialized (only explaining my thought process).
I see what you are saying and you are correct. It was careless on my part and appreciate you pointing this out to me. I will take these things more into consideration when I edit. The goal was to show some additional things you can do with zram and usage. Should I put this on the wiki somewhere or assume people looking for these things will read zram`s documentation itself on there website?
Rebeltrouper (talk) 19:26, 21 February 2023 (UTC)
Hello again,
Just some clarification, simply creating a device won't result in more than several hundreds of bytes I believe. If you set size and compression algorithm, that would create the necessary structures to hold the compressed data, which costs some additional space proportional to the size of the drive. In your first example size and compression algorithms are set for all the devices zramctl could find without explanation what's going on. Some users would find themselves confused, others would copy it directly without thinking too much, that sort of things, that's my concern.
Best Regards,
Joro (talk) 20:12, 21 February 2023 (UTC)
Hello,
Ah I see what you mean for zramctl section. Yes for that one it was a script I use for myself in certain situations. I had looked through the edits you made before but now understand much more of the edits you made. Yes if someone would have copied and pasted it can be problematic.I will do a better job explaining what I did and assume people will copy and paste what I write without thinking. Specifically things that can be problematic if they do not know what it does. TY for spending the time to explain and teach me this.
Rebeltrouper (talk) 20:58, 21 February 2023 (UTC)