Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation #22

Open
wmertens opened this issue May 14, 2020 · 4 comments
Open

Documentation #22

wmertens opened this issue May 14, 2020 · 4 comments

Comments

@wmertens
Copy link

The description of the algorithm is spread throughout the source, it would be nice to aggregate it into the readme.

There's also a very interesting diatribe at https://github.com/Tookmund/Swapspace/blob/master/src/main.c#L160 that would be worth moving to the readme or a separate .md file

@jtv
Copy link

jtv commented May 15, 2020

@wmertens thanks, I'm delighted that somebody remarked on it after those 15 years or so. :-)

@Tookmund
Copy link
Owner

It would certainly be useful to have all the documentation in one place, I'll have to look into it.

@Tookmund
Copy link
Owner

@wmertens does doc/technicaldetails.md cover what you want from an algorithm description?

I split the documentation up a while ago and I think that may have just made it less discoverable.
I'm going to mention these files in the README, but it might be a better idea in the long run to just merge them all back together. I'll think about it.

Tookmund added a commit that referenced this issue May 21, 2020
Could help with #22
Probably should just merge these back into the README though
@wmertens
Copy link
Author

Funny, I just missed the doc directory entirely. I suppose I thought it contained the machinery for the manpages.

Yes, linking to the technical details from the readme would be great, but there is still information missing.

My problem was that I ended up having 12GB of swap, largely unused, and I was wondering how long it would take for it to drop back.

I also had no clue about the maximum of 32 swap files in the Linux kernel.

I ended up setting my swap file maximum to 500MB, and the cooldown to 50s, which seems to work well on my laptop with 8GB RAM and 60GB SSD disk (dual boot, a loaner).

Still, those settings aren't for everyone, and it would be good to have a list of trade-offs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants