[lxc-devel] [lxd/master] lxd-benchmark: Change the default number of containers from 100 to 3

simos on Github lxc-bot at linuxcontainers.org
Wed Sep 27 15:07:41 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 510 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170927/c449024c/attachment.bin>
-------------- next part --------------
From b06472375b5035599b4f5b2a4c60a4c3acbfaad9 Mon Sep 17 00:00:00 2001
From: Simos Xenitellis <simos at users.noreply.github.com>
Date: Wed, 27 Sep 2017 18:04:33 +0300
Subject: [PATCH] Change the default number of containers from 100 to 3

By default, lxd-benchmark will create 100 containers.
This can crash systems with less than 16GB of RAM.
A value of 3 should be sufficient for systems with 1GB RAM,
even when the storage backend is `dir`.
---
 lxd-benchmark/main.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd-benchmark/main.go b/lxd-benchmark/main.go
index 76bc9e2fd..9a7f8d2ee 100644
--- a/lxd-benchmark/main.go
+++ b/lxd-benchmark/main.go
@@ -12,7 +12,7 @@ import (
 	"github.com/lxc/lxd/shared/version"
 )
 
-var argCount = gnuflag.Int("count", 100, "Number of containers to create")
+var argCount = gnuflag.Int("count", 3, "Number of containers to create")
 var argParallel = gnuflag.Int("parallel", -1, "Number of threads to use")
 var argImage = gnuflag.String("image", "ubuntu:", "Image to use for the test")
 var argPrivileged = gnuflag.Bool("privileged", false, "Use privileged containers")


More information about the lxc-devel mailing list