<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 --- - Allow resource controls on systemd-run"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=73685">73685</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Allow  resource controls on systemd-run
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>systemd-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sss@lambdacurry.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </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>systemd-run is actually very nifty to run programs in a resource controlled
mode. It is pretty much a better "isolate"
(<a href="http://www.ucw.cz/moe/isolate.1.html">http://www.ucw.cz/moe/isolate.1.html</a>).

The problem is that systemd-run does not allow programs to be run with resource
controls. I am aware of the --slice parameter, but that is an umbrella resource
control:  If I run 5 different programs simultaneously (with differing resource
requirements), It does not let me allocate resource control on a per run basis.
The other solution suggested to me on IRC was to issue a "systemctl
set-property" after firing the systemd-run, which really does not serve the
purpose.

I tried passing a .service file to systemd-run (which allows specification of
resource controls within it), but it doesnt seem to execute it. In fact, I
would argue that systemd-run should simply read in a .service file (which has
all the --slice and --scope parameters built in), honor the resource controls
and execute it. You can ignore the dependencies, etc. which are not required.
All the commandline arguments would be unnecessary.</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>