Bug 3667 - divide resources more fairly between users/sessions
Summary: divide resources more fairly between users/sessions
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Agent (show other bugs)
Version: pre-1.0
Hardware: PC Linux
: P2 Enhancement
Target Milestone: MediumPrio
Assignee: Peter Åstrand
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-17 10:41 CET by Pierre Ossman
Modified: 2025-04-29 13:47 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2010-11-17 10:41:05 CET
Modern kernels have the ability to schedule groups of processes instead of just individual ones, meaning that you can get a more fair distribution between e.g. users. It needs help creating these groups though so we should consider creating a new one for each session we start.
Comment 2 Pierre Ossman cendio 2013-08-26 08:46:37 CEST
Might not be needed anymore. systemd automatically does this via pam_systemd.
Comment 3 Karl Mikaelsson cendio 2018-10-17 10:26:29 CEST
Here is an example of when pam_systemd isn't working well enough with ThinLinc.

https://github.com/bjorn-fischer/fss-tools
Comment 4 Pierre Ossman cendio 2019-05-21 12:44:03 CEST
See bug 44 and bug 7304 which has variations on this theme.
Comment 6 Pierre Ossman cendio 2025-04-29 13:47:23 CEST
A lot has changed since this bug was created.

Firstly, systemd is now standard on most systems, and it heavily groups things in cgroups. It doesn't set up any rules by default, but that should be possible to configure by the sysadmin.

Secondly, we've introduced some changes to the load balancing in ThinLinc. We've added the ability to restrict the number of users per agent (bug 284), and we're now treating all users as equal no matter the load they generate (bug 4429).

Note You need to log in before you can comment on or make changes to this bug.