Project

General

Profile

Actions

Bug #10708

open

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

Added by Tom Clegg over 7 years ago. Updated 27 days ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Story points:
-
Release:
Release relationship:
Auto

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

Actions

Also available in: Atom PDF