vmbench icon indicating copy to clipboard operation
vmbench copied to clipboard

Add features

Open srault95 opened this issue 8 years ago • 2 comments

Hi,

Please see and merge ? my pull request

Thank

srault95 avatar May 21 '17 18:05 srault95

I was running it and got the following:

HTTP server (sanic)
===================

Starting server...
  docker run --rm -t -p 25000:25000 -e UID=10710547 -e GID=22002 -v /localdisk/work/amalakho/vmbench/.cache:/var/lib/cache -v /localdisk/work/amalakho/vmbench/sockets:/tmp/sockets --name magicbench magic/benchmark vex bench python /usr/src/servers/sanic_http_server.py --addr=0.0.0.0:25000
Trying to connect to server at address 127.0.0.1:25000
Could not start server
----------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/logging/config.py", line 558, in configure
    handler = self.configure_handler(handlers[name])
  File "/usr/local/lib/python3.5/logging/config.py", line 731, in configure_handler
    result = factory(**kwargs)
  File "/usr/local/lib/python3.5/logging/handlers.py", line 202, in __init__
    BaseRotatingHandler.__init__(self, filename, 'a', encoding, delay)
  File "/usr/local/lib/python3.5/logging/handlers.py", line 57, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/local/lib/python3.5/logging/__init__.py", line 1014, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/local/lib/python3.5/logging/__init__.py", line 1043, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/access.log'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/servers/sanic_http_server.py", line 8, in <module>
    app = Sanic(__name__)
  File "/usr/local/python-venvs/bench/lib/python3.5/site-packages/sanic/app.py", line 33, in __init__
    logging.config.dictConfig(log_config)
  File "/usr/local/lib/python3.5/logging/config.py", line 795, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/local/lib/python3.5/logging/config.py", line 566, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler 'accessTimedRotatingFile': [Errno 13] Permission denied: '/access.log'

anton-malakhov avatar Oct 10 '17 19:10 anton-malakhov

Doesn't the GOMAXPROCS defined here make Golang serial while you are comparing to multiprocessing http server?

anton-malakhov avatar Oct 10 '17 20:10 anton-malakhov