Linux-Bench for Docker v2 beta

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Patrick

Administrator
Staff member
Dec 21, 2010
12,514
5,807
113
Here is my question: Should there be a docker.linux-bench.com or linux-bench.com/docker with Docker only results? I think it might be wise to start keeping pure bare metal runs v. virtualized/ containerized runs but wanted to get feedback.

For those that want to live on the wild side running beta applications:

Code:
docker run linuxbench/linux-bench-docker
That will run the beta script in Docker.

Thanks to the STH colo lab I actually have enough horsepower/ boxes to test this one which is nice. Seems to be running well thus far.

And of course - thank you to @Chuckleb to pioneering this one.
 
  • Like
Reactions: Chuntzu

Patrick

Administrator
Staff member
Dec 21, 2010
12,514
5,807
113
OK so thoughts on this one.

Output:
Code:
ref_link: 15081431050415
See your results online at: http://beta.linux-bench.com/display/15081431050415
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (26) couldn't open file "./tmpbench//data/linux-bench12.16_52e8d540699b_20     15_0508_010309.log"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (26) couldn't open file "./tmpbench//data/linux-bench12.16_52e8d540699b_20     15_0508_010309.log"

real    57m7.562s
user    539m45.297s
sys     713m7.226s
I just saw if I could remove tmpbench and see if that works.
 

xnoodle

Active Member
Jan 4, 2011
258
48
28
Hm, errors out on Ubuntu 14.04.1 LTS

Code:
# docker run linuxbench/linux-bench-docker
Unable to find image 'linuxbench/linux-bench-docker:latest' locally
Pulling repository linuxbench/linux-bench-docker
4604511ef6ac: Download complete
e9e06b06e14c: Download complete
a82efea989f9: Download complete
37bea4ee0c81: Download complete
07f8e8c5e660: Download complete
a31853f0b648: Download complete
03edcac21849: Download complete
162715ab5798: Download complete
c49fbe481e36: Download complete
cd421c6916f1: Download complete
d7895b8b1b30: Download complete
Status: Downloaded newer image for linuxbench/linux-bench-docker:latest
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   120  100   120    0     0    178      0 --:--:-- --:--:-- --:--:--   178
bash: line 2: syntax error near unexpected token `$'\r''
'ash: line 2: `time(bash <(curl -sk https://raw.githubusercontent.com/STH-Dev/linux-bench/master/linux-bench-docker.sh))
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,514
5,807
113
I am getting that too now... all I did was copy the code to a new file...
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,514
5,807
113
Ok... somehow it got a DOS file... I never edited on windows so very strange. At least it is running now.
 
  • Like
Reactions: T_Minus

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
not familiar with docker enough to figure this one out, but this is what it runs on my 15.04 server setup:

gigatexal@noneccsrv:~$ docker run linuxbench/linux-bench-docker
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 118 100 118 0 0 73 0 0:00:01 0:00:01 --:--:-- 73
/dev/fd/63: line 2: syntax error near unexpected token `newline'
/dev/fd/63: line 2: `<?xml version="1.0" encoding="utf-8"?>'

real 0m0.486s
user 0m0.000s
sys 0m0.000s
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,514
5,807
113
not familiar with docker enough to figure this one out, but this is what it runs on my 15.04 server setup:

gigatexal@noneccsrv:~$ docker run linuxbench/linux-bench-docker
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 118 100 118 0 0 73 0 0:00:01 0:00:01 --:--:-- 73
/dev/fd/63: line 2: syntax error near unexpected token `newline'
/dev/fd/63: line 2: `<?xml version="1.0" encoding="utf-8"?>'

real 0m0.486s
user 0m0.000s
sys 0m0.000s
Looks like 15.04 broke some stuff. Mind sending the whole log file?
 

Patrick

Administrator
Staff member
Dec 21, 2010
12,514
5,807
113
where's it spit the log to?
Ah ha! Easy on the non-docker version. I might need to go test that :) ! Do you still have access to the FS that the container is writing to?

The easy way to search is:
Code:
sudo find / -name linux-bench*.log
 

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
I don't think the docker container is still running. I'll have to see if I can peer into the fs for the container.

searching for the log using the find command you gave me turned up nothing

curiously I can't cd into /var/lib/log even with a sudo cd ... <-- I think this has the global docker log file?
 

gigatexal

I'm here to learn
Nov 25, 2012
2,913
607
113
Portland, Oregon
alexandarnarayan.com
Preliminary comparison of the 3380 run vs the 6376 run is this:

Quad opty 6376 -

Code:
Redis
SET Requests (p/s) GET Requests (p/s) Redis-1 Redis-5 Redis-10 Redis-25 Redis-50 Redis-75 Redis-100
664893.6 852514.9 14793 41667 42017 43668 44643 42194 45455
Single Opty 3380 -

Code:
Redis
SET Requests (p/s) GET Requests (p/s) Redis-1 Redis-5 Redis-10 Redis-25 Redis-50 Redis-75 Redis-100
841042.9 1013171 17986 52356 54348 55866 56497 55866 54945
I'm guessing REDIS likes frequency vs. more cores


edit: found my answer here (How fast is Redis? – Redis)

from the article: "
  • CPU is another very important factor. Being single-threaded, Redis favors fast CPUs with large caches and not many cores. At this game, Intel CPUs are currently the winners. It is not uncommon to get only half the performance on an AMD Opteron CPU compared to similar Nehalem EP/Westmere EP/Sandy Bridge Intel CPUs with Redis. When client and server run on the same box, the CPU is the limiting factor with redis-benchmark.
    "
 
Last edited:
  • Like
Reactions: Chuckleb

Chuckleb

Moderator
Mar 5, 2013
1,017
331
83
Minnesota
One thing to note, if you pass a directory to the run command, it can save the logs outside of the Docker container. I updated instructions.

Code:
docker run -v `pwd`:/data linuxbench/linux-bench-docker
 
  • Like
Reactions: Jeggs101