Size of Gentoo repository
Consider the following sentence: "the Gentoo repository alone takes around 500 MB excluding the various sources that are stored in it."
On my system:
du -s --block-size=MiB /var/portage/repos/gentoo
du -s --block-size=MB /var/portage/repos/gentoo
I think the size of the Gentoo repository should be updated. Fturco (talk) 18:11, 13 May 2017 (UTC)
- First, I believe this statement is supposed to be excluding the distfiles and packages directories, so that would make the size much smaller:
du -s --exclude='distfiles' --exclude='packages' --block-size=MB /usr/portage
- This shows the in-text reference is still about 150MB off, so I will increase the reference to 650MBs and clarify distfiles/ and packages/ directories are not included in this disk space estimate. --Maffblaster (talk) 18:33, 15 May 2017 (UTC)
- Well my number actually excludes distfiles and packages since I put them in /var/portage/distfiles and /var/portage/packages respectively, which are not subdirectories of /var/portage/repos/gentoo. Anyway I update my Gentoo repository with git, not rsync. sync-uri = https://github.com/gentoo-mirror/gentoo Fturco (talk) 07:27, 16 May 2017 (UTC)
- That makes sense, then. git doesn't count because it only will grow larger more quickly with time (all history is saved), whereas rsync grows, but only as new packages get added to the repo. --Maffblaster (talk) 20:49, 16 May 2017 (UTC)
- I forget about git history:
du -s /var/portage/repos/gentoo --exclude=.git --block-size=MB
The purpose of swap space is to provide disk storage to the kernel when internal memory (RAM) is under pressure. A swap space allows for the kernel to move memory pages that are not likely to be accessed soon to disk (swap or page-out), freeing memory.
That's not complete, I'll suggest the following
The purpose of swap space is to provide disk storage for dynamically allocated memory to the kernel when internal memory (RAM) is under pressure. A swap space allows for the kernel to move dynamically allocated memory pages, that have no permanent home on disk, to disk, freeing memory.
The kernel has other ways of 'swapping' too. Clean buffers can be dropped, dirty buffers can be flushed to disk before being dropped. Executable code can be dropped. All these things can be reloaded when required. They are never written to swap as they all have permanent locations on disk.
Not having swap at all robs the kernel of one of its options for swapping and puts pressure on the others as dynamically allocated RAM has to stay in RAM.
--NeddySeagoon (talk) 21:52, 3 May 2020 (UTC)