Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts

Linux, GNU/Linux, free software...

r/linux

Vote
Posted by2 hours ago
Post image
Vote
28 comments
6
promoted
View Comments
Play
0:00
0:00
Settings
Fullscreen
6
0 comments
237
Posted by7 hours ago
237
47 comments
50
50
17 comments
7
Posted by8 hours ago

I was reading about paging and swap-space and I'm a little confused about how much space (and where) on the hard-disk is used to page out / swap-out frames. Let's think of the following scenario :

  1. We have a single process which progressively uses newer pages in virtual memory. Each time for a new page, we allocate a frame in physical memory.

  2. But after a while, frames in the physical memory get exhausted and we choose a victim frame to be removed from RAM.

I have the following doubts :

  1. Does the victim frame get swapped out to the swap space or paged out to some different location (apart from swap-space) on the hard-disk?

  2. From what I've seen, swap space is usually around 1-2x size of RAM, so does this mean a process can use only RAM + swap-space amount of memory in total? Or would it be more than that and limited by the size of virtual memory?

7
2 comments
20
Posted by15 hours ago

I'm a bit confused about PAM and PolKit. As I understand it now, PAM is a suite of libraries for authenticating users while PolKit is a layer of security on top of the DBus. Is that right?

Could someone offer me a high level overview of the differences between them?

20
9 comments

About Community

All things Linux and GNU/Linux -- this is neither a community exclusively about the kernel Linux, nor is exclusively about the GNU Operating System.
676k

Members

1.9k

Online


Created Jan 25, 2008

Related Communities

r/linux_gaming

191,060 members

r/archlinux

189,114 members

r/freebsd

23,118 members

r/linuxadmin

177,302 members

r/Ubuntu

181,769 members

r/linux4noobs

178,090 members

r/commandline

67,431 members

r/debian

51,212 members

r/linuxquestions

186,638 members

r/openSUSE

17,974 members

r/linux Rules

1.
r/linux is not a support forum
2.
No spamblog submissions
3.
No memes, image macros, rage comics, overdone jokes
4.
Reddiquette, Trolling, *-isms, Poor Discussion or User Conduct
5.
Relevance to r/linux community
6.
Spamming self-promotion, surveys, crowdfunding
7.
No misdirected links, login website, url shortener, and certain social media
8.
NSFW Image, links

About

GNU/Linux is a free and open source software operating system for computers. The operating system is a collection of the basic instructions that tell the electronic parts of the computer what to do and how to work. Free, Libre and open source software (FLOSS) means that everyone has the freedom to use it, see how it works, and change it.

GNU/Linux is a collaborative effort between the GNU project, formed in 1983 to develop the GNU operating system and the development team of Linux, a kernel. Initially GNU was intended to develop into an operating system of its own, but these plans were shelved somewhere along the way.

Linux is also used without GNU in embedded systems, mobile phones and appliances, often with BusyBox or other such embedded tools.

Frequently Asked Questions

Moderators

Moderator list hidden. Learn More