blob: 84fd7ac174f87fac6846748552c32b2139b22bf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] cgroup on the desktop
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20cgroup%20on%20the%20desktop&In-Reply-To=%3C1332347538.19885.9.camel%40foxbase%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="013324.html">
<LINK REL="Next" HREF="013255.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] cgroup on the desktop</H1>
<B>Robert Fox</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20cgroup%20on%20the%20desktop&In-Reply-To=%3C1332347538.19885.9.camel%40foxbase%3E"
TITLE="[Mageia-dev] cgroup on the desktop">list at foxconsult.net
</A><BR>
<I>Wed Mar 21 17:32:18 CET 2012</I>
<P><UL>
<LI>Previous message: <A HREF="013324.html">[Mageia-dev] cgroup on the desktop
</A></li>
<LI>Next message: <A HREF="013255.html">[Mageia-dev] Latest kernels vs IDE/libata
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#13325">[ date ]</a>
<a href="thread.html#13325">[ thread ]</a>
<a href="subject.html#13325">[ subject ]</a>
<a href="author.html#13325">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Wed, 2012-03-21 at 16:24 +0000, Colin Guthrie wrote:
><i> 'Twas brillig, and Robert Fox at 20/03/12 08:13 did gyre and gimble:
</I>><i> > Tried to research it, but it look more like it is for servers than
</I>><i> > desktop. Could someone explain what the value-add is of using this on
</I>><i> > the desktop?
</I>><i>
</I>><i> As used in the context of systemd just a general mechanism for tracking
</I>><i> processes. In the olden days, a service could exec other binaries quite
</I>><i> happily. Killing the primary pid of the service meant that any other
</I>><i> binaries launched were not necessarily killed. This mean that the
</I>><i> service needed to implement it's own accounting and tracking system and
</I>><i> there was no way to properly track to what service a given processes
</I>><i> belongs.
</I>><i>
</I>><i> Now with cgroups, it's possible to fully track all the processes started
</I>><i> by a given service and kill each of them properly when stopping the service.
</I>><i>
</I>><i> In addition it's also possible to identify to which service a given
</I>><i> process belongs. e.g. if something is spinning out of control you can
</I>><i> see it in top and then trace it back to the service itself.
</I>><i>
</I>><i> There are numerous other things that can be done with cgroups such as
</I>><i> imposing various limits on a given service (and any subsequent processes
</I>><i> it spawns).
</I>><i>
</I>><i>
</I>><i> Overall this is an accounting mechanism that is something very much
</I>><i> baked into systemd. It's an integral part of it. It's not something we
</I>><i> could simply "turn off" on desktops vs. servers.
</I>><i>
</I>><i>
</I>><i> However, this isn't really the right place to discuss this topic.
</I>><i>
</I>><i> Col
</I>><i>
</I>
Thanks Col - very informative and helpful!
Cheers,
Robert
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="013324.html">[Mageia-dev] cgroup on the desktop
</A></li>
<LI>Next message: <A HREF="013255.html">[Mageia-dev] Latest kernels vs IDE/libata
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#13325">[ date ]</a>
<a href="thread.html#13325">[ thread ]</a>
<a href="subject.html#13325">[ subject ]</a>
<a href="author.html#13325">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|