<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - tmpfs sizes, specifically for /sys/fs/cgroup"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75566">75566</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>tmpfs sizes, specifically for /sys/fs/cgroup
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>michael+freedesktop@stapelberg.de
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>In <a href="http://bugs.debian.org/739574">http://bugs.debian.org/739574</a>, a user is concerned that the amount of RAM
that can be used by the sum of all his tmpfs mounts is bigger than the
available amount of RAM. Specifically, he has 4G of RAM in the machine, and the
following tmpfs mounts:
tmpfs 1,9G 0 1,9G 0% /dev/shm
tmpfs 1,9G 464K 1,9G 1% /run
tmpfs 1,9G 0 1,9G 0% /sys/fs/cgroup
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 100M 0 100M 0% /run/user
Now, specifically for /sys/fs/cgroup, which contains no files and only seems to
be used for mounting cgroups in subdirectories, I suppose we could use a
small-ish size= parameter?
What’s the story with regards to /dev/shm and /run? I see that on (older?)
Ubuntu, /dev/shm points to /run/shm. Why don’t we use the same setup in
systemd? Is there any benefit in having two separate tmpfs mounts?
And is the concern about RAM exhaustion actually a real one or are we missing
something? (Personally, I think it’s unlikely that some process will entirely
exhaust more than one tmpfs mount, but it _could_ happen, right?)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>