Bug #10708

[Crunch2] crunch-run fails trying to set swappiness on ubuntu 1204 kernel

Added by Tom Clegg over 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Start date:
12/09/2016
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

The zero value of dockerclient.HostConfig has MemorySwappiness 0, which means "set swappiness to zero". This fails on older kernels (like Ubuntu 12.04).

If MemorySwappiness -1 then docker does not try to change swappiness at all.

I suspect we really intended the -1 behavior ("leave things alone"), and the only reason we're using 0 is that we followed the "zero value means do the normal thing / don't need it, don't mention it" approach, which doesn't apply here.

source:services/crunch-run/crunchrun.go#L526

History

#1 Updated by Tom Morris almost 2 years ago

  • Target version set to Arvados Future Sprints

Also available in: Atom PDF