python3 -u test.py RUN ./ol new -p=test-dir PUSH conf: {'limits': {'installer_mem_mb': 250}} PUSH conf: {'registry': '/root/open-lambda/test-registry'} ======================================== ping_test ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "ping_test", "params": {}, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "procs": 10, "installer_mem_mb": 250, "swappiness": 0 }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "docker_runtime": "", "sandbox_config": {}, "storage": { "scratch": "", "root": "private", "code": "" }, "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 2.1900603771209717, "total_seconds": 2.4341180324554443, "stats": { "pings_per_sec": 456.6128401894686 }, "ol-stats": { "fresh-cgroup.cnt": 17, "fresh-cgroup.ms-avg": 0 }, "errors": [], "worker_tail": [ "2020/08/07 21:47:49 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:47:49 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:47:49 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:47:49 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:47:49 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:47:49 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:47:49 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:47:49 remove worker.pid", "2020/08/07 21:47:49 exiting", "" ] } PUSH conf: {'features': {'import_cache': False}} ======================================== install_tests ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "install_tests", "params": {}, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "procs": 10, "installer_mem_mb": 250, "swappiness": 0 }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "docker_runtime": "", "sandbox_config": {}, "storage": { "scratch": "", "root": "private", "code": "" }, "worker_port": "5000", "features": { "import_cache": false, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 11.05628252029419, "total_seconds": 11.294184684753418, "stats": null, "ol-stats": { "Channel().cnt": 10, "Channel().ms-avg": 0, "Create().cnt": 10, "Create().ms-avg": 302, "Create()/acquire-cgroup.cnt": 10, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 10, "Create()/acquire-mem.ms-avg": 0, "Create()/fresh-proc.cnt": 10, "Create()/fresh-proc.ms-avg": 297, "Create()/make-root-fs.cnt": 10, "Create()/make-root-fs.ms-avg": 5, "Destroy().cnt": 10, "Destroy().ms-avg": 2, "Destroy()/detach-root.cnt": 10, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 10, "Destroy()/kill-procs.ms-avg": 1, "Destroy()/remove-root.cnt": 10, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 4, "LambdaFunc.Invoke.ms-avg": 2749, "Pause().cnt": 4, "Pause().ms-avg": 4, "ServeHTTP.cnt": 4, "ServeHTTP.ms-avg": 62, "fresh-cgroup.cnt": 27, "fresh-cgroup.ms-avg": 0, "pull-lambda.cnt": 4, "pull-lambda.ms-avg": 16, "pull-package.cnt": 6, "pull-package.ms-avg": 1416, "web-request.cnt": 4, "web-request.ms-avg": 2749 }, "errors": [], "worker_tail": [ "2020/08/07 21:48:00 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:00 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:00 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:00 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:00 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:00 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:00 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:48:00 remove worker.pid", "2020/08/07 21:48:00 exiting", "" ] } POP conf: {'features': {'import_cache': False}} PUSH conf: {'mem_pool_mb': 500} ======================================== install_tests ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "install_tests", "params": {}, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 8.23421597480774, "total_seconds": 8.472259998321533, "stats": null, "ol-stats": { "Channel().cnt": 10, "Channel().ms-avg": 0, "Create().cnt": 11, "Create().ms-avg": 96, "Create()/acquire-cgroup.cnt": 11, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 11, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 4, "Create()/fork-proc.ms-avg": 5, "Create()/fresh-proc.cnt": 7, "Create()/fresh-proc.ms-avg": 137, "Create()/make-root-fs.cnt": 11, "Create()/make-root-fs.ms-avg": 6, "Destroy().cnt": 11, "Destroy().ms-avg": 3, "Destroy()/detach-root.cnt": 11, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 11, "Destroy()/kill-procs.ms-avg": 1, "Destroy()/remove-root.cnt": 11, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 4, "LambdaFunc.Invoke.ms-avg": 2050, "Pause().cnt": 8, "Pause().ms-avg": 4, "ServeHTTP.cnt": 4, "ServeHTTP.ms-avg": 43, "Unpause().cnt": 3, "Unpause().ms-avg": 0, "childExit().cnt": 4, "childExit().ms-avg": 0, "fork().cnt": 4, "fork().ms-avg": 5, "forkRequest.cnt": 4, "forkRequest.ms-avg": 5, "fresh-cgroup.cnt": 28, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 4, "move-to-cg-after-fork.ms-avg": 0, "pull-lambda.cnt": 4, "pull-lambda.ms-avg": 1, "pull-package.cnt": 6, "pull-package.ms-avg": 1302, "web-request.cnt": 4, "web-request.ms-avg": 2050 }, "errors": [], "worker_tail": [ "2020/08/07 21:48:09 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:09 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:09 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:09 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:09 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:09 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:09 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:48:09 remove worker.pid", "2020/08/07 21:48:09 exiting", "" ] } POP conf: {'mem_pool_mb': 500} PUSH conf: {'sandbox': 'docker', 'features': {'import_cache': False}} ======================================== install_tests ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "install_tests", "params": {}, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "docker", "limits": { "mem_mb": 50, "procs": 10, "installer_mem_mb": 250, "swappiness": 0 }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "docker_runtime": "", "sandbox_config": {}, "storage": { "scratch": "", "root": "private", "code": "" }, "worker_port": "5000", "features": { "import_cache": false, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 18.625836610794067, "total_seconds": 20.252491235733032, "stats": null, "ol-stats": { "Channel().cnt": 10, "Channel().ms-avg": 0, "Create().cnt": 10, "Create().ms-avg": 1083, "Destroy().cnt": 10, "Destroy().ms-avg": 318, "LambdaFunc.Invoke.cnt": 4, "LambdaFunc.Invoke.ms-avg": 4645, "Pause().cnt": 4, "Pause().ms-avg": 48, "ServeHTTP.cnt": 4, "ServeHTTP.ms-avg": 1, "pull-lambda.cnt": 4, "pull-lambda.ms-avg": 2, "pull-package.cnt": 6, "pull-package.ms-avg": 2022, "web-request.cnt": 4, "web-request.ms-avg": 4645 }, "errors": [], "worker_tail": [ "2020/08/07 21:48:28 Kill function: install2", "2020/08/07 21:48:28 Destroy() [SB 7]", "2020/08/07 21:48:28 Kill function: install3", "2020/08/07 21:48:28 Destroy() [SB 9]", "2020/08/07 21:48:28 Kill function: echo", "2020/08/07 21:48:28 Destroy() [SB 0]", "2020/08/07 21:48:29 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:48:29 remove worker.pid", "2020/08/07 21:48:29 exiting", "" ] } POP conf: {'sandbox': 'docker', 'features': {'import_cache': False}} ======================================== fork_bomb ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "fork_bomb", "params": {}, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 0.17522859573364258, "total_seconds": 0.4064764976501465, "stats": null, "ol-stats": { "Channel().cnt": 1, "Channel().ms-avg": 0, "Create().cnt": 2, "Create().ms-avg": 74, "Create()/acquire-cgroup.cnt": 2, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 2, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 1, "Create()/fork-proc.ms-avg": 5, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 136, "Create()/make-root-fs.cnt": 2, "Create()/make-root-fs.ms-avg": 4, "Destroy().cnt": 2, "Destroy().ms-avg": 2, "Destroy()/detach-root.cnt": 2, "Destroy()/detach-root.ms-avg": 1, "Destroy()/kill-procs.cnt": 2, "Destroy()/kill-procs.ms-avg": 0, "Destroy()/remove-root.cnt": 2, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 1, "LambdaFunc.Invoke.ms-avg": 171, "Pause().cnt": 2, "Pause().ms-avg": 3, "ServeHTTP.cnt": 1, "ServeHTTP.ms-avg": 12, "childExit().cnt": 1, "childExit().ms-avg": 0, "fork().cnt": 1, "fork().ms-avg": 5, "forkRequest.cnt": 1, "forkRequest.ms-avg": 4, "fresh-cgroup.cnt": 19, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 1, "move-to-cg-after-fork.ms-avg": 0, "pull-lambda.cnt": 1, "pull-lambda.ms-avg": 2, "web-request.cnt": 1, "web-request.ms-avg": 171 }, "errors": [], "worker_tail": [ "2020/08/07 21:48:29 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:29 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:29 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:29 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:29 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:29 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:29 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:48:29 remove worker.pid", "2020/08/07 21:48:29 exiting", "" ] } ======================================== max_mem_alloc ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "max_mem_alloc", "params": {}, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 0.8227722644805908, "total_seconds": 1.0569953918457031, "stats": null, "ol-stats": { "Channel().cnt": 1, "Channel().ms-avg": 0, "Create().cnt": 2, "Create().ms-avg": 76, "Create()/acquire-cgroup.cnt": 2, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 2, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 1, "Create()/fork-proc.ms-avg": 7, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 136, "Create()/make-root-fs.cnt": 2, "Create()/make-root-fs.ms-avg": 4, "Destroy().cnt": 2, "Destroy().ms-avg": 2, "Destroy()/detach-root.cnt": 2, "Destroy()/detach-root.ms-avg": 1, "Destroy()/kill-procs.cnt": 2, "Destroy()/kill-procs.ms-avg": 0, "Destroy()/remove-root.cnt": 2, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 1, "LambdaFunc.Invoke.ms-avg": 818, "Pause().cnt": 2, "Pause().ms-avg": 3, "ServeHTTP.cnt": 1, "ServeHTTP.ms-avg": 658, "childExit().cnt": 1, "childExit().ms-avg": 0, "fork().cnt": 1, "fork().ms-avg": 7, "forkRequest.cnt": 1, "forkRequest.ms-avg": 6, "fresh-cgroup.cnt": 19, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 1, "move-to-cg-after-fork.ms-avg": 1, "pull-lambda.cnt": 1, "pull-lambda.ms-avg": 3, "web-request.cnt": 1, "web-request.ms-avg": 818 }, "errors": [], "worker_tail": [ "2020/08/07 21:48:30 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:48:30 remove worker.pid", "2020/08/07 21:48:30 exiting", "" ] } PUSH conf: {'mem_pool_mb': 500} ======================================== numpy_test ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "numpy_test", "params": {}, "pass": false, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": null, "total_seconds": 53.28346633911133, "stats": null, "ol-stats": { "Channel().cnt": 10, "Channel().ms-avg": 0, "Create().cnt": 11, "Create().ms-avg": 102, "Create()/acquire-cgroup.cnt": 11, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 11, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 4, "Create()/fork-proc.ms-avg": 5, "Create()/fresh-proc.cnt": 7, "Create()/fresh-proc.ms-avg": 151, "Create()/make-root-fs.cnt": 11, "Create()/make-root-fs.ms-avg": 3, "Destroy().cnt": 11, "Destroy().ms-avg": 3, "Destroy()/detach-root.cnt": 11, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 11, "Destroy()/kill-procs.ms-avg": 1, "Destroy()/remove-root.cnt": 11, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 4, "LambdaFunc.Invoke.ms-avg": 13246, "Pause().cnt": 8, "Pause().ms-avg": 4, "ServeHTTP.cnt": 4, "ServeHTTP.ms-avg": 124, "Unpause().cnt": 3, "Unpause().ms-avg": 0, "childExit().cnt": 4, "childExit().ms-avg": 0, "fork().cnt": 4, "fork().ms-avg": 5, "forkRequest.cnt": 4, "forkRequest.ms-avg": 5, "fresh-cgroup.cnt": 28, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 4, "move-to-cg-after-fork.ms-avg": 0, "pull-lambda.cnt": 4, "pull-lambda.ms-avg": 3, "pull-package.cnt": 6, "pull-package.ms-avg": 8711, "web-request.cnt": 4, "web-request.ms-avg": 13246 }, "errors": [ [ "Traceback (most recent call last):", " File \"test.py\", line 81, in wrapper", " rv = fn(**kwargs)", " File \"test.py\", line 246, in numpy_test", " raise Exception(\"STATUS %d: %s\" % (r.status_code, r.text))", "Exception: STATUS 500: 500: Internal Server Error500: Internal Server Error", "" ] ], "worker_tail": [ "using existing OL directory at /root/open-lambda/test-dir", "2020/08/07 21:48:30 save PID 10339 to file /root/open-lambda/test-dir/worker/worker.pid", "2020/08/07 21:48:30 Start Lambda Server", "2020/08/07 21:48:30 Storage dir at /root/open-lambda/test-dir/worker/code", "2020/08/07 21:48:30 Storage dir at /root/open-lambda/test-dir/worker/scratch", "2020/08/07 21:48:30 Create SandboxPool", "2020/08/07 21:48:30 create /sys/fs/cgroup/blkio/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 create /sys/fs/cgroup/cpu/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 create /sys/fs/cgroup/devices/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 create /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 create /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 create /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 create /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 create /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 create /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:30 Storage dir at /root/open-lambda/test-dir/worker/root-sandboxes", "2020/08/07 21:48:30 Create DepTracer", "2020/08/07 21:48:30 Create PackagePuller", "2020/08/07 21:48:30 Create ImportCache", "2020/08/07 21:48:30 Import Cache Tree:", "2020/08/07 21:48:30 0 - ROOT", "2020/08/07 21:48:30 Create HandlerPuller", "2020/08/07 21:48:30 Setups Handlers", "2020/08/07 21:48:30 Execute handler by POSTing to localhost:5000/run/", "2020/08/07 21:48:30 Get status by sending request to localhost:5000/status", "2020/08/07 21:48:30 start creating/serving CGs [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:31 Receive request to /pid", "2020/08/07 21:48:31 Receive request to /run/numpy15", "2020/08/07 21:48:31 debug: LambdaFunc.Task() runs on goroutine 18 [FUNC numpy15]", "2020/08/07 21:48:31 do pip install, using scratchDir='/root/open-lambda/test-dir/lambda/packages/numpy==1.15'", "2020/08/07 21:48:31 run pip install numpy==1.15 from a new Sandbox to /root/open-lambda/test-dir/lambda/packages/numpy==1.15 on host", "2020/08/07 21:48:31 .Create(, true, /root/open-lambda/test-dir/worker/admin-lambdas/pip-install, /root/open-lambda/test-dir/lambda/packages/numpy==1.15, )=1... [SOCK POOL sandboxes]", "2020/08/07 21:48:31 use cgroup cg-1 [SOCK 1]", "sock2.py: started new process with args: sock2.py /host/bootstrap.py 9", "sock2.py: joined cgroup, close FD 3", "sock2.py: joined cgroup, close FD 4", "sock2.py: joined cgroup, close FD 5", "sock2.py: joined cgroup, close FD 6", "sock2.py: joined cgroup, close FD 7", "sock2.py: joined cgroup, close FD 8", "sock2.py: joined cgroup, close FD 9", "sock2.py: joined cgroup, close FD 10", "sock2.py: joined cgroup, close FD 11", "sock2.py: start web server on fd: 3", "2020/08/07 21:48:31 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:48:31 Channel() [SB 1]", "Collecting numpy==1.15", " Downloading numpy-1.15.0-cp36-cp36m-manylinux1_x86_64.whl (13.9 MB)", "Installing collected packages: numpy", "Successfully installed numpy-1.15.0", "pip install returned code 0", "2020/08/07 21:48:47 Destroy() [SB 1]", "2020/08/07 21:48:47 CG ref count decremented to 0 [SOCK 1]", "2020/08/07 21:48:47 waiting for 1 procs in cg-1 to die [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:48:47 killed PIDs [10353] in CG [SOCK 1]", "2020/08/07 21:48:47 unmount and remove dirs [SOCK 1]", "2020/08/07 21:48:47 increase instances to 1 [FUNC numpy15]", "2020/08/07 21:48:47 Try using Zygote from ", "2020/08/07 21:48:47 .Create(, false, /root/open-lambda/test-dir/worker/code/1004-import-cache, /root/open-lambda/test-dir/worker/scratch/1005-import-cache, )=2... [SOCK POOL sandboxes]", "2020/08/07 21:48:47 use cgroup cg-2 [SOCK 2]", "sock2.py: started new process with args: sock2.py /host/bootstrap.py 9", "sock2.py: joined cgroup, close FD 3", "sock2.py: joined cgroup, close FD 4", "sock2.py: joined cgroup, close FD 5", "sock2.py: joined cgroup, close FD 6", "sock2.py: joined cgroup, close FD 7", "sock2.py: joined cgroup, close FD 8", "sock2.py: joined cgroup, close FD 9", "sock2.py: joined cgroup, close FD 10", "sock2.py: joined cgroup, close FD 11", "sock2.py: start fork server on fd: 3", "2020/08/07 21:48:48 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:48:48 .Create(, true, /root/open-lambda/test-dir/worker/code/1001-numpy15, /root/open-lambda/test-dir/worker/scratch/1003-numpy15, )=3... [SOCK POOL sandboxes]", "2020/08/07 21:48:48 use cgroup cg-3 [SOCK 3]", "2020/08/07 21:48:48 fork(SB 3) [SB 2]", "sock2.py: start web server on fd: 3", "2020/08/07 21:48:48 move PID 10368 from CG cg-2 to CG cg-3 [SOCK 2]", "2020/08/07 21:48:48 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:48:48 Pause() [SB 2]", "2020/08/07 21:48:48 Channel() [SB 3]", "2020/08/07 21:48:48 Pause() [SB 3]", "2020/08/07 21:48:48 Receive request to /run/numpy16", "2020/08/07 21:48:48 debug: LambdaFunc.Task() runs on goroutine 32 [FUNC numpy16]", "2020/08/07 21:48:48 do pip install, using scratchDir='/root/open-lambda/test-dir/lambda/packages/numpy==1.16'", "2020/08/07 21:48:48 run pip install numpy==1.16 from a new Sandbox to /root/open-lambda/test-dir/lambda/packages/numpy==1.16 on host", "2020/08/07 21:48:48 .Create(, true, /root/open-lambda/test-dir/worker/admin-lambdas/pip-install, /root/open-lambda/test-dir/lambda/packages/numpy==1.16, )=4... [SOCK POOL sandboxes]", "2020/08/07 21:48:48 use cgroup cg-4 [SOCK 4]", "sock2.py: started new process with args: sock2.py /host/bootstrap.py 9", "sock2.py: joined cgroup, close FD 3", "sock2.py: joined cgroup, close FD 4", "sock2.py: joined cgroup, close FD 5", "sock2.py: joined cgroup, close FD 6", "sock2.py: joined cgroup, close FD 7", "sock2.py: joined cgroup, close FD 8", "sock2.py: joined cgroup, close FD 9", "sock2.py: joined cgroup, close FD 10", "sock2.py: joined cgroup, close FD 11", "sock2.py: start web server on fd: 3", "2020/08/07 21:48:48 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:48:48 Channel() [SB 4]", "Collecting numpy==1.16", " Downloading numpy-1.16.0-cp36-cp36m-manylinux1_x86_64.whl (17.3 MB)", "Installing collected packages: numpy", "Successfully installed numpy-1.16.0", "pip install returned code 0", "2020/08/07 21:49:09 Destroy() [SB 4]", "2020/08/07 21:49:09 CG ref count decremented to 0 [SOCK 4]", "2020/08/07 21:49:09 waiting for 1 procs in cg-4 to die [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:09 killed PIDs [10374] in CG [SOCK 4]", "2020/08/07 21:49:09 unmount and remove dirs [SOCK 4]", "2020/08/07 21:49:09 increase instances to 1 [FUNC numpy16]", "2020/08/07 21:49:09 Try using Zygote from ", "2020/08/07 21:49:09 Unpause() [SB 2]", "2020/08/07 21:49:09 .Create(, true, /root/open-lambda/test-dir/worker/code/1008-numpy16, /root/open-lambda/test-dir/worker/scratch/1010-numpy16, )=5... [SOCK POOL sandboxes]", "2020/08/07 21:49:09 use cgroup cg-5 [SOCK 5]", "2020/08/07 21:49:09 fork(SB 5) [SB 2]", "2020/08/07 21:49:09 move PID 10386 from CG cg-2 to CG cg-5 [SOCK 2]", "2020/08/07 21:49:09 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:49:09 Pause() [SB 2]", "sock2.py: start web server on fd: 3", "2020/08/07 21:49:09 Channel() [SB 5]", "2020/08/07 21:49:09 Pause() [SB 5]", "2020/08/07 21:49:09 Receive request to /run/numpy15", "2020/08/07 21:49:09 increase instances to 1 [FUNC numpy15]", "2020/08/07 21:49:09 Try using Zygote from ", "2020/08/07 21:49:09 Unpause() [SB 2]", "2020/08/07 21:49:09 .Create(, true, /root/open-lambda/test-dir/worker/code/1012-numpy15, /root/open-lambda/test-dir/worker/scratch/1013-numpy15, )=6... [SOCK POOL sandboxes]", "2020/08/07 21:49:09 use cgroup cg-6 [SOCK 6]", "2020/08/07 21:49:09 fork(SB 6) [SB 2]", "sock2.py: start web server on fd: 3", "2020/08/07 21:49:09 Destroy() [SB 3]", "2020/08/07 21:49:09 CG ref count decremented to 0 [SOCK 3]", "2020/08/07 21:49:09 waiting for 2 procs in cg-3 to die [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:09 move PID 10391 from CG cg-2 to CG cg-6 [SOCK 2]", "2020/08/07 21:49:09 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:49:09 Pause() [SB 2]", "2020/08/07 21:49:09 killed PIDs [10368 10370] in CG [SOCK 3]", "2020/08/07 21:49:09 unmount and remove dirs [SOCK 3]", "2020/08/07 21:49:09 childExit(SB 3) [SB 2]", "2020/08/07 21:49:09 Channel() [SB 6]", "2020/08/07 21:49:09 CG ref count decremented to 3 [SOCK 2]", "2020/08/07 21:49:09 Pause() [SB 6]", "2020/08/07 21:49:09 Receive request to /run/pandas15", "2020/08/07 21:49:09 debug: LambdaFunc.Task() runs on goroutine 53 [FUNC pandas15]", "2020/08/07 21:49:09 do pip install, using scratchDir='/root/open-lambda/test-dir/lambda/packages/pandas'", "2020/08/07 21:49:09 run pip install pandas from a new Sandbox to /root/open-lambda/test-dir/lambda/packages/pandas on host", "2020/08/07 21:49:09 .Create(, true, /root/open-lambda/test-dir/worker/admin-lambdas/pip-install, /root/open-lambda/test-dir/lambda/packages/pandas, )=7... [SOCK POOL sandboxes]", "2020/08/07 21:49:09 use cgroup cg-7 [SOCK 7]", "sock2.py: started new process with args: sock2.py /host/bootstrap.py 9", "sock2.py: joined cgroup, close FD 3", "sock2.py: joined cgroup, close FD 4", "sock2.py: joined cgroup, close FD 5", "sock2.py: joined cgroup, close FD 6", "sock2.py: joined cgroup, close FD 7", "sock2.py: joined cgroup, close FD 8", "sock2.py: joined cgroup, close FD 9", "sock2.py: joined cgroup, close FD 10", "sock2.py: joined cgroup, close FD 11", "sock2.py: start web server on fd: 3", "2020/08/07 21:49:09 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:49:09 Channel() [SB 7]", "Collecting pandas", " Downloading pandas-1.1.0-cp36-cp36m-manylinux1_x86_64.whl (10.5 MB)", "Installing collected packages: pandas", "Successfully installed pandas-1.1.0", "pip install returned code 0", "2020/08/07 21:49:20 Destroy() [SB 7]", "2020/08/07 21:49:20 CG ref count decremented to 0 [SOCK 7]", "2020/08/07 21:49:20 waiting for 1 procs in cg-7 to die [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:20 killed PIDs [10398] in CG [SOCK 7]", "2020/08/07 21:49:20 unmount and remove dirs [SOCK 7]", "2020/08/07 21:49:20 do pip install, using scratchDir='/root/open-lambda/test-dir/lambda/packages/python-dateutil'", "2020/08/07 21:49:20 run pip install python-dateutil from a new Sandbox to /root/open-lambda/test-dir/lambda/packages/python-dateutil on host", "2020/08/07 21:49:20 .Create(, true, /root/open-lambda/test-dir/worker/admin-lambdas/pip-install, /root/open-lambda/test-dir/lambda/packages/python-dateutil, )=8... [SOCK POOL sandboxes]", "2020/08/07 21:49:20 use cgroup cg-8 [SOCK 8]", "sock2.py: started new process with args: sock2.py /host/bootstrap.py 9", "sock2.py: joined cgroup, close FD 3", "sock2.py: joined cgroup, close FD 4", "sock2.py: joined cgroup, close FD 5", "sock2.py: joined cgroup, close FD 6", "sock2.py: joined cgroup, close FD 7", "sock2.py: joined cgroup, close FD 8", "sock2.py: joined cgroup, close FD 9", "sock2.py: joined cgroup, close FD 10", "sock2.py: joined cgroup, close FD 11", "sock2.py: start web server on fd: 3", "2020/08/07 21:49:20 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:49:20 Channel() [SB 8]", "Collecting python-dateutil", " Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)", "Installing collected packages: python-dateutil", "Successfully installed python-dateutil-2.8.1", "pip install returned code 0", "2020/08/07 21:49:21 Destroy() [SB 8]", "2020/08/07 21:49:21 CG ref count decremented to 0 [SOCK 8]", "2020/08/07 21:49:21 waiting for 1 procs in cg-8 to die [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:21 killed PIDs [10411] in CG [SOCK 8]", "2020/08/07 21:49:21 unmount and remove dirs [SOCK 8]", "2020/08/07 21:49:21 do pip install, using scratchDir='/root/open-lambda/test-dir/lambda/packages/pytz'", "2020/08/07 21:49:21 run pip install pytz from a new Sandbox to /root/open-lambda/test-dir/lambda/packages/pytz on host", "2020/08/07 21:49:21 .Create(, true, /root/open-lambda/test-dir/worker/admin-lambdas/pip-install, /root/open-lambda/test-dir/lambda/packages/pytz, )=9... [SOCK POOL sandboxes]", "2020/08/07 21:49:21 use cgroup cg-9 [SOCK 9]", "sock2.py: started new process with args: sock2.py /host/bootstrap.py 9", "sock2.py: joined cgroup, close FD 3", "sock2.py: joined cgroup, close FD 4", "sock2.py: joined cgroup, close FD 5", "sock2.py: joined cgroup, close FD 6", "sock2.py: joined cgroup, close FD 7", "sock2.py: joined cgroup, close FD 8", "sock2.py: joined cgroup, close FD 9", "sock2.py: joined cgroup, close FD 10", "sock2.py: joined cgroup, close FD 11", "sock2.py: start web server on fd: 3", "2020/08/07 21:49:21 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:49:21 Channel() [SB 9]", "Collecting pytz", " Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)", "Installing collected packages: pytz", "Successfully installed pytz-2020.1", "pip install returned code 0", "2020/08/07 21:49:23 Destroy() [SB 9]", "2020/08/07 21:49:23 CG ref count decremented to 0 [SOCK 9]", "2020/08/07 21:49:23 waiting for 1 procs in cg-9 to die [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:23 killed PIDs [10424] in CG [SOCK 9]", "2020/08/07 21:49:23 unmount and remove dirs [SOCK 9]", "2020/08/07 21:49:23 do pip install, using scratchDir='/root/open-lambda/test-dir/lambda/packages/six'", "2020/08/07 21:49:23 run pip install six from a new Sandbox to /root/open-lambda/test-dir/lambda/packages/six on host", "2020/08/07 21:49:23 .Create(, true, /root/open-lambda/test-dir/worker/admin-lambdas/pip-install, /root/open-lambda/test-dir/lambda/packages/six, )=10... [SOCK POOL sandboxes]", "2020/08/07 21:49:23 use cgroup cg-10 [SOCK 10]", "sock2.py: started new process with args: sock2.py /host/bootstrap.py 9", "sock2.py: joined cgroup, close FD 3", "sock2.py: joined cgroup, close FD 4", "sock2.py: joined cgroup, close FD 5", "sock2.py: joined cgroup, close FD 6", "sock2.py: joined cgroup, close FD 7", "sock2.py: joined cgroup, close FD 8", "sock2.py: joined cgroup, close FD 9", "sock2.py: joined cgroup, close FD 10", "sock2.py: joined cgroup, close FD 11", "sock2.py: start web server on fd: 3", "2020/08/07 21:49:23 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:49:23 Channel() [SB 10]", "Collecting six", " Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)", "Installing collected packages: six", "Successfully installed six-1.15.0", "pip install returned code 0", "2020/08/07 21:49:23 Destroy() [SB 10]", "2020/08/07 21:49:23 CG ref count decremented to 0 [SOCK 10]", "2020/08/07 21:49:23 waiting for 1 procs in cg-10 to die [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:23 killed PIDs [10437] in CG [SOCK 10]", "2020/08/07 21:49:23 unmount and remove dirs [SOCK 10]", "2020/08/07 21:49:23 increase instances to 1 [FUNC pandas15]", "2020/08/07 21:49:23 Try using Zygote from ", "2020/08/07 21:49:23 Unpause() [SB 2]", "2020/08/07 21:49:23 .Create(, true, /root/open-lambda/test-dir/worker/code/1015-pandas15, /root/open-lambda/test-dir/worker/scratch/1020-pandas15, )=11... [SOCK POOL sandboxes]", "2020/08/07 21:49:23 use cgroup cg-11 [SOCK 11]", "2020/08/07 21:49:23 fork(SB 11) [SB 2]", "2020/08/07 21:49:23 move PID 10449 from CG cg-2 to CG cg-11 [SOCK 2]", "2020/08/07 21:49:23 ...returns , [SOCK POOL sandboxes]", "2020/08/07 21:49:23 Pause() [SB 2]", "sock2.py: start web server on fd: 3", "2020/08/07 21:49:23 Channel() [SB 11]", "ERROR:tornado.application:Uncaught exception POST /run/pandas15 (0.0.0.0)", "HTTPServerRequest(protocol='http', host='localhost:5000', method='POST', uri='/run/pandas15', version='HTTP/1.1', remote_ip='0.0.0.0', headers={'Host': 'localhost:5000', 'User-Agent': 'python-requests/2.9.1', 'Content-Length': '22', 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'X-Forwarded-For': '127.0.0.1'})", "Traceback (most recent call last):", " File \"/usr/local/lib/python3.6/dist-packages/tornado/web.py\", line 1510, in _execute", " result = method(*self.path_args, **self.path_kwargs)", " File \"sock2.py\", line 32, in post", " import f", " File \"/handler/f.py\", line 3, in ", " import pandas", " File \"/packages/pandas/files/pandas/__init__.py\", line 22, in ", " from pandas.compat.numpy import (", " File \"/packages/pandas/files/pandas/compat/numpy/__init__.py\", line 21, in ", " \"this version of pandas is incompatible with numpy < 1.15.4\\n\"", "ImportError: this version of pandas is incompatible with numpy < 1.15.4", "your numpy version is 1.15.0.", "Please upgrade numpy to >= 1.15.4 to use this pandas version", "2020/08/07 21:49:24 Pause() [SB 11]", "2020/08/07 21:49:24 received kill signal, cleaning up", "2020/08/07 21:49:24 Kill function: numpy15", "2020/08/07 21:49:24 Destroy() [SB 6]", "2020/08/07 21:49:24 CG ref count decremented to 0 [SOCK 6]", "2020/08/07 21:49:24 killed PIDs [10391 10394] in CG [SOCK 6]", "2020/08/07 21:49:24 unmount and remove dirs [SOCK 6]", "2020/08/07 21:49:24 childExit(SB 6) [SB 2]", "2020/08/07 21:49:24 CG ref count decremented to 3 [SOCK 2]", "2020/08/07 21:49:24 Kill function: numpy16", "2020/08/07 21:49:24 Destroy() [SB 5]", "2020/08/07 21:49:24 CG ref count decremented to 0 [SOCK 5]", "2020/08/07 21:49:24 killed PIDs [10386 10388] in CG [SOCK 5]", "2020/08/07 21:49:24 unmount and remove dirs [SOCK 5]", "2020/08/07 21:49:24 childExit(SB 5) [SB 2]", "2020/08/07 21:49:24 CG ref count decremented to 2 [SOCK 2]", "2020/08/07 21:49:24 Kill function: pandas15", "2020/08/07 21:49:24 Destroy() [SB 11]", "2020/08/07 21:49:24 CG ref count decremented to 0 [SOCK 11]", "2020/08/07 21:49:24 killed PIDs [10449 10451] in CG [SOCK 11]", "2020/08/07 21:49:24 unmount and remove dirs [SOCK 11]", "2020/08/07 21:49:24 childExit(SB 11) [SB 2]", "2020/08/07 21:49:24 CG ref count decremented to 1 [SOCK 2]", "2020/08/07 21:49:24 Import Cache Tree:", "2020/08/07 21:49:24 4 - ROOT", "2020/08/07 21:49:24 Destroy() [SB 2]", "2020/08/07 21:49:24 CG ref count decremented to 0 [SOCK 2]", "2020/08/07 21:49:24 killed PIDs [10366] in CG [SOCK 2]", "2020/08/07 21:49:24 unmount and remove dirs [SOCK 2]", "2020/08/07 21:49:24 make sure all memory is free [SOCK POOL sandboxes]", "2020/08/07 21:49:24 memory pool emptied [SOCK POOL sandboxes]", "2020/08/07 21:49:24 received shutdown request [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 empty queues and release CGs [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 remove /sys/fs/cgroup/blkio/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 remove /sys/fs/cgroup/cpu/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 remove /sys/fs/cgroup/devices/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:24 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:49:24 remove worker.pid", "2020/08/07 21:49:24 exiting", "" ] } POP conf: {'mem_pool_mb': 500} POP conf: {'registry': '/root/open-lambda/test-registry'} PUSH conf: {'server_mode': 'sock', 'mem_pool_mb': 500} ======================================== sock_churn {'fork': False, 'seconds': 5, 'baseline': 0, 'procs': 1} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "sock_churn", "params": { "fork": false, "seconds": 5, "baseline": 0, "procs": 1 }, "pass": true, "conf": { "server_mode": "sock", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-dir/registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 5.098311901092529, "total_seconds": 5.220621824264526, "stats": { "sandboxes_per_sec": 6.0 }, "ol-stats": { "Create().cnt": 30, "Create().ms-avg": 151, "Create()/acquire-cgroup.cnt": 30, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 30, "Create()/acquire-mem.ms-avg": 0, "Create()/fresh-proc.cnt": 30, "Create()/fresh-proc.ms-avg": 135, "Create()/make-root-fs.cnt": 30, "Create()/make-root-fs.ms-avg": 15, "Destroy().cnt": 60, "Destroy().ms-avg": 1, "Destroy()/detach-root.cnt": 30, "Destroy()/detach-root.ms-avg": 1, "Destroy()/kill-procs.cnt": 30, "Destroy()/kill-procs.ms-avg": 0, "Destroy()/remove-root.cnt": 30, "Destroy()/remove-root.ms-avg": 0, "fresh-cgroup.cnt": 47, "fresh-cgroup.ms-avg": 0 }, "errors": [], "worker_tail": [ "2020/08/07 21:49:29 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:29 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:29 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:29 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:29 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:29 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:29 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:49:29 remove worker.pid", "2020/08/07 21:49:29 exiting", "" ] } ======================================== sock_churn {'fork': True, 'seconds': 10, 'baseline': 0, 'procs': 1} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "sock_churn", "params": { "fork": true, "seconds": 10, "baseline": 0, "procs": 1 }, "pass": true, "conf": { "server_mode": "sock", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-dir/registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 10.15396785736084, "total_seconds": 10.381074905395508, "stats": { "sandboxes_per_sec": 47.1 }, "ol-stats": { "Create().cnt": 472, "Create().ms-avg": 10, "Create()/acquire-cgroup.cnt": 472, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 472, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 471, "Create()/fork-proc.ms-avg": 6, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 131, "Create()/make-root-fs.cnt": 472, "Create()/make-root-fs.ms-avg": 3, "Destroy().cnt": 943, "Destroy().ms-avg": 1, "Destroy()/detach-root.cnt": 472, "Destroy()/detach-root.ms-avg": 1, "Destroy()/kill-procs.cnt": 472, "Destroy()/kill-procs.ms-avg": 0, "Destroy()/remove-root.cnt": 472, "Destroy()/remove-root.ms-avg": 0, "childExit().cnt": 471, "childExit().ms-avg": 0, "fork().cnt": 471, "fork().ms-avg": 6, "forkRequest.cnt": 471, "forkRequest.ms-avg": 5, "fresh-cgroup.cnt": 489, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 471, "move-to-cg-after-fork.ms-avg": 0 }, "errors": [], "worker_tail": [ "2020/08/07 21:49:39 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:39 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:39 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:39 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:39 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:39 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:39 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:49:39 remove worker.pid", "2020/08/07 21:49:39 exiting", "" ] } ======================================== sock_churn {'fork': True, 'seconds': 10, 'baseline': 0, 'procs': 15} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "sock_churn", "params": { "fork": true, "seconds": 10, "baseline": 0, "procs": 15 }, "pass": true, "conf": { "server_mode": "sock", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-dir/registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 10.363243818283081, "total_seconds": 10.628000974655151, "stats": { "sandboxes_per_sec": 47.7 }, "ol-stats": { "Create().cnt": 478, "Create().ms-avg": 76, "Create()/acquire-cgroup.cnt": 478, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 478, "Create()/acquire-mem.ms-avg": 16, "Create()/fork-proc.cnt": 477, "Create()/fork-proc.ms-avg": 56, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 133, "Create()/make-root-fs.cnt": 478, "Create()/make-root-fs.ms-avg": 1, "Destroy().cnt": 955, "Destroy().ms-avg": 47, "Destroy()/detach-root.cnt": 478, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 478, "Destroy()/kill-procs.ms-avg": 10, "Destroy()/remove-root.cnt": 478, "Destroy()/remove-root.ms-avg": 0, "childExit().cnt": 477, "childExit().ms-avg": 59, "fork().cnt": 477, "fork().ms-avg": 56, "forkRequest.cnt": 477, "forkRequest.ms-avg": 10, "fresh-cgroup.cnt": 495, "fresh-cgroup.ms-avg": 2, "move-to-cg-after-fork.cnt": 477, "move-to-cg-after-fork.ms-avg": 2 }, "errors": [], "worker_tail": [ "2020/08/07 21:49:50 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:50 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:50 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:50 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:50 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:50 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:49:50 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:49:50 remove worker.pid", "2020/08/07 21:49:50 exiting", "" ] } ======================================== sock_churn {'fork': True, 'seconds': 10, 'baseline': 32, 'procs': 1} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "sock_churn", "params": { "fork": true, "seconds": 10, "baseline": 32, "procs": 1 }, "pass": true, "conf": { "server_mode": "sock", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-dir/registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 10.770715236663818, "total_seconds": 11.441085577011108, "stats": { "sandboxes_per_sec": 43.9 }, "ol-stats": { "Create().cnt": 472, "Create().ms-avg": 7, "Create()/acquire-cgroup.cnt": 472, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 472, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 471, "Create()/fork-proc.ms-avg": 6, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 134, "Create()/make-root-fs.cnt": 472, "Create()/make-root-fs.ms-avg": 0, "Destroy().cnt": 911, "Destroy().ms-avg": 1, "Destroy()/detach-root.cnt": 472, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 472, "Destroy()/kill-procs.ms-avg": 0, "Destroy()/remove-root.cnt": 472, "Destroy()/remove-root.ms-avg": 0, "Pause().cnt": 32, "Pause().ms-avg": 0, "childExit().cnt": 471, "childExit().ms-avg": 0, "fork().cnt": 471, "fork().ms-avg": 6, "forkRequest.cnt": 471, "forkRequest.ms-avg": 5, "fresh-cgroup.cnt": 489, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 471, "move-to-cg-after-fork.ms-avg": 0 }, "errors": [], "worker_tail": [ "2020/08/07 21:50:01 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:01 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:01 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:01 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:01 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:01 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:01 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:50:01 remove worker.pid", "2020/08/07 21:50:01 exiting", "" ] } ======================================== sock_churn {'fork': True, 'seconds': 10, 'baseline': 32, 'procs': 15} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "sock_churn", "params": { "fork": true, "seconds": 10, "baseline": 32, "procs": 15 }, "pass": true, "conf": { "server_mode": "sock", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-dir/registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 11.071558713912964, "total_seconds": 11.42109990119934, "stats": { "sandboxes_per_sec": 39.5 }, "ol-stats": { "Create().cnt": 428, "Create().ms-avg": 126, "Create()/acquire-cgroup.cnt": 428, "Create()/acquire-cgroup.ms-avg": 1, "Create()/acquire-mem.cnt": 428, "Create()/acquire-mem.ms-avg": 72, "Create()/fork-proc.cnt": 427, "Create()/fork-proc.ms-avg": 49, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 176, "Create()/make-root-fs.cnt": 428, "Create()/make-root-fs.ms-avg": 1, "Destroy().cnt": 823, "Destroy().ms-avg": 52, "Destroy()/detach-root.cnt": 428, "Destroy()/detach-root.ms-avg": 2, "Destroy()/kill-procs.cnt": 428, "Destroy()/kill-procs.ms-avg": 11, "Destroy()/remove-root.cnt": 428, "Destroy()/remove-root.ms-avg": 0, "Pause().cnt": 32, "Pause().ms-avg": 0, "childExit().cnt": 427, "childExit().ms-avg": 57, "fork().cnt": 427, "fork().ms-avg": 49, "forkRequest.cnt": 427, "forkRequest.ms-avg": 11, "fresh-cgroup.cnt": 445, "fresh-cgroup.ms-avg": 4, "move-to-cg-after-fork.cnt": 427, "move-to-cg-after-fork.ms-avg": 2 }, "errors": [], "worker_tail": [ "2020/08/07 21:50:13 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:13 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:13 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:13 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:13 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:13 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:13 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:50:13 remove worker.pid", "2020/08/07 21:50:13 exiting", "" ] } POP conf: {'server_mode': 'sock', 'mem_pool_mb': 500} PUSH conf: {'registry': '/tmp/tmp8k2ip2yf', 'registry_cache_ms': 3000} ======================================== update_code ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "update_code", "params": {}, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "procs": 10, "installer_mem_mb": 250, "swappiness": 0 }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 3000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/tmp/tmp8k2ip2yf", "worker_dir": "/root/open-lambda/test-dir/worker", "docker_runtime": "", "sandbox_config": {}, "storage": { "scratch": "", "root": "private", "code": "" }, "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 6.029501676559448, "total_seconds": 6.27481746673584, "stats": null, "ol-stats": { "Channel().cnt": 3, "Channel().ms-avg": 0, "Create().cnt": 4, "Create().ms-avg": 49, "Create()/acquire-cgroup.cnt": 4, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 4, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 3, "Create()/fork-proc.ms-avg": 7, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 158, "Create()/make-root-fs.cnt": 4, "Create()/make-root-fs.ms-avg": 3, "Destroy().cnt": 4, "Destroy().ms-avg": 3, "Destroy()/detach-root.cnt": 4, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 4, "Destroy()/kill-procs.ms-avg": 2, "Destroy()/remove-root.cnt": 4, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 1718, "LambdaFunc.Invoke.ms-avg": 1, "Pause().cnt": 1721, "Pause().ms-avg": 0, "ServeHTTP.cnt": 1718, "ServeHTTP.ms-avg": 0, "Unpause().cnt": 1717, "Unpause().ms-avg": 0, "childExit().cnt": 3, "childExit().ms-avg": 0, "fork().cnt": 3, "fork().ms-avg": 7, "forkRequest.cnt": 3, "forkRequest.ms-avg": 6, "fresh-cgroup.cnt": 21, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 3, "move-to-cg-after-fork.ms-avg": 0, "pull-lambda.cnt": 3, "pull-lambda.ms-avg": 1, "web-request.cnt": 1718, "web-request.ms-avg": 1 }, "errors": [], "worker_tail": [ "2020/08/07 21:50:19 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:19 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:19 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:19 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:19 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:19 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:19 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:50:19 remove worker.pid", "2020/08/07 21:50:19 exiting", "" ] } POP conf: {'registry': '/tmp/tmp8k2ip2yf', 'registry_cache_ms': 3000} PUSH conf: {'registry': '/root/open-lambda/test-registry'} ======================================== stress_one_lambda {'seconds': 15, 'procs': 1} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "stress_one_lambda", "params": { "seconds": 15, "procs": 1 }, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 15.043093204498291, "total_seconds": 15.27366018295288, "stats": { "reqs_per_sec": 289.46666666666664 }, "ol-stats": { "Channel().cnt": 3, "Channel().ms-avg": 0, "Create().cnt": 4, "Create().ms-avg": 42, "Create()/acquire-cgroup.cnt": 4, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 4, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 3, "Create()/fork-proc.ms-avg": 5, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 133, "Create()/make-root-fs.cnt": 4, "Create()/make-root-fs.ms-avg": 3, "Destroy().cnt": 4, "Destroy().ms-avg": 3, "Destroy()/detach-root.cnt": 4, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 4, "Destroy()/kill-procs.ms-avg": 2, "Destroy()/remove-root.cnt": 4, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 4342, "LambdaFunc.Invoke.ms-avg": 1, "Pause().cnt": 4345, "Pause().ms-avg": 0, "ServeHTTP.cnt": 4342, "ServeHTTP.ms-avg": 0, "Unpause().cnt": 4341, "Unpause().ms-avg": 0, "childExit().cnt": 3, "childExit().ms-avg": 0, "fork().cnt": 3, "fork().ms-avg": 5, "forkRequest.cnt": 3, "forkRequest.ms-avg": 5, "fresh-cgroup.cnt": 21, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 3, "move-to-cg-after-fork.ms-avg": 0, "pull-lambda.cnt": 3, "pull-lambda.ms-avg": 1, "web-request.cnt": 4342, "web-request.ms-avg": 1 }, "errors": [], "worker_tail": [ "2020/08/07 21:50:34 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:34 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:34 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:34 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:34 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:34 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:34 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:50:34 remove worker.pid", "2020/08/07 21:50:34 exiting", "" ] } ======================================== stress_one_lambda {'seconds': 15, 'procs': 2} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "stress_one_lambda", "params": { "seconds": 15, "procs": 2 }, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 15.046433448791504, "total_seconds": 15.280217409133911, "stats": { "reqs_per_sec": 272.4 }, "ol-stats": { "Channel().cnt": 3, "Channel().ms-avg": 0, "Create().cnt": 4, "Create().ms-avg": 43, "Create()/acquire-cgroup.cnt": 4, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 4, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 3, "Create()/fork-proc.ms-avg": 6, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 138, "Create()/make-root-fs.cnt": 4, "Create()/make-root-fs.ms-avg": 3, "Destroy().cnt": 4, "Destroy().ms-avg": 4, "Destroy()/detach-root.cnt": 4, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 4, "Destroy()/kill-procs.ms-avg": 1, "Destroy()/remove-root.cnt": 4, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 4086, "LambdaFunc.Invoke.ms-avg": 1, "Pause().cnt": 3872, "Pause().ms-avg": 0, "ServeHTTP.cnt": 4086, "ServeHTTP.ms-avg": 0, "Unpause().cnt": 3869, "Unpause().ms-avg": 0, "childExit().cnt": 3, "childExit().ms-avg": 0, "fork().cnt": 3, "fork().ms-avg": 6, "forkRequest.cnt": 3, "forkRequest.ms-avg": 5, "fresh-cgroup.cnt": 21, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 3, "move-to-cg-after-fork.ms-avg": 1, "pull-lambda.cnt": 3, "pull-lambda.ms-avg": 1, "web-request.cnt": 4086, "web-request.ms-avg": 1 }, "errors": [], "worker_tail": [ "2020/08/07 21:50:50 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:50 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:50 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:50 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:50 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:50 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:50:50 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:50:50 remove worker.pid", "2020/08/07 21:50:50 exiting", "" ] } ======================================== stress_one_lambda {'seconds': 15, 'procs': 8} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "stress_one_lambda", "params": { "seconds": 15, "procs": 8 }, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/root/open-lambda/test-registry", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": false, "downsize_paused_mem": true } }, "seconds": 15.064649105072021, "total_seconds": 15.297032833099365, "stats": { "reqs_per_sec": 257.6666666666667 }, "ol-stats": { "Channel().cnt": 3, "Channel().ms-avg": 0, "Create().cnt": 4, "Create().ms-avg": 42, "Create()/acquire-cgroup.cnt": 4, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 4, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 3, "Create()/fork-proc.ms-avg": 7, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 131, "Create()/make-root-fs.cnt": 4, "Create()/make-root-fs.ms-avg": 3, "Destroy().cnt": 4, "Destroy().ms-avg": 3, "Destroy()/detach-root.cnt": 4, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 4, "Destroy()/kill-procs.ms-avg": 2, "Destroy()/remove-root.cnt": 4, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 3865, "LambdaFunc.Invoke.ms-avg": 2, "Pause().cnt": 2807, "Pause().ms-avg": 0, "ServeHTTP.cnt": 3865, "ServeHTTP.ms-avg": 0, "Unpause().cnt": 2803, "Unpause().ms-avg": 0, "childExit().cnt": 3, "childExit().ms-avg": 0, "fork().cnt": 3, "fork().ms-avg": 7, "forkRequest.cnt": 3, "forkRequest.ms-avg": 6, "fresh-cgroup.cnt": 21, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 3, "move-to-cg-after-fork.ms-avg": 0, "pull-lambda.cnt": 3, "pull-lambda.ms-avg": 4, "web-request.cnt": 3865, "web-request.ms-avg": 4 }, "errors": [], "worker_tail": [ "2020/08/07 21:51:05 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:05 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:05 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:05 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:05 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:05 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:05 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:51:05 remove worker.pid", "2020/08/07 21:51:05 exiting", "" ] } POP conf: {'registry': '/root/open-lambda/test-registry'} PUSH conf: {'features': {'reuse_cgroups': True}} PUSH conf: {'registry': '/tmp/tmpq0selbe3'} ======================================== call_each_once_exec {'lambda_count': 100, 'alloc_mb': 1} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "call_each_once_exec", "params": { "lambda_count": 100, "alloc_mb": 1 }, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "procs": 10, "installer_mem_mb": 250, "swappiness": 0 }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/tmp/tmpq0selbe3", "worker_dir": "/root/open-lambda/test-dir/worker", "docker_runtime": "", "sandbox_config": {}, "storage": { "scratch": "", "root": "private", "code": "" }, "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": true, "downsize_paused_mem": true } }, "seconds": 2.7807846069335938, "total_seconds": 3.2458183765411377, "stats": { "reqs_per_sec": 35.96138503886746 }, "ol-stats": { "Channel().cnt": 100, "Channel().ms-avg": 0, "Create().cnt": 101, "Create().ms-avg": 7, "Create()/acquire-cgroup.cnt": 101, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 101, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 100, "Create()/fork-proc.ms-avg": 5, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 137, "Create()/make-root-fs.cnt": 101, "Create()/make-root-fs.ms-avg": 0, "Destroy().cnt": 158, "Destroy().ms-avg": 4, "Destroy()/detach-root.cnt": 101, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 101, "Destroy()/kill-procs.ms-avg": 3, "Destroy()/remove-root.cnt": 101, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 100, "LambdaFunc.Invoke.ms-avg": 23, "Pause().cnt": 200, "Pause().ms-avg": 9, "ServeHTTP.cnt": 100, "ServeHTTP.ms-avg": 5, "Unpause().cnt": 99, "Unpause().ms-avg": 0, "childExit().cnt": 100, "childExit().ms-avg": 3, "evict.cnt": 57, "evict.ms-avg": 11, "fork().cnt": 100, "fork().ms-avg": 5, "forkRequest.cnt": 100, "forkRequest.ms-avg": 4, "fresh-cgroup.cnt": 70, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 100, "move-to-cg-after-fork.ms-avg": 0, "pull-lambda.cnt": 100, "pull-lambda.ms-avg": 2, "web-request.cnt": 100, "web-request.ms-avg": 23 }, "errors": [], "worker_tail": [ "2020/08/07 21:51:08 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:08 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:08 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:08 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:08 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:08 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:08 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:51:08 remove worker.pid", "2020/08/07 21:51:08 exiting", "" ] } POP conf: {'registry': '/tmp/tmpq0selbe3'} PUSH conf: {'registry': '/tmp/tmps_7bi0a2'} ======================================== call_each_once_exec {'lambda_count': 1000, 'alloc_mb': 10} ======================================== RUN ./ol worker -p=test-dir --detach RUN ./ol kill -p=test-dir { "test": "call_each_once_exec", "params": { "lambda_count": 1000, "alloc_mb": 10 }, "pass": true, "conf": { "server_mode": "lambda", "import_cache_tree": "", "sandbox": "sock", "limits": { "mem_mb": 50, "swappiness": 0, "installer_mem_mb": 250, "procs": 10 }, "storage": { "scratch": "", "root": "private", "code": "" }, "trace": { "cgroups": false, "evictor": false, "package": false, "memory": false }, "mem_pool_mb": 500, "pip_mirror": "", "registry_cache_ms": 5000, "SOCK_base_path": "/root/open-lambda/test-dir/lambda", "Pkgs_dir": "/root/open-lambda/test-dir/lambda/packages", "registry": "/tmp/tmps_7bi0a2", "worker_dir": "/root/open-lambda/test-dir/worker", "sandbox_config": {}, "docker_runtime": "", "worker_port": "5000", "features": { "import_cache": true, "reuse_cgroups": true, "downsize_paused_mem": true } }, "seconds": 42.37981104850769, "total_seconds": 42.912821531295776, "stats": { "reqs_per_sec": 23.596156468083546 }, "ol-stats": { "Channel().cnt": 1000, "Channel().ms-avg": 0, "Create().cnt": 1001, "Create().ms-avg": 7, "Create()/acquire-cgroup.cnt": 1001, "Create()/acquire-cgroup.ms-avg": 0, "Create()/acquire-mem.cnt": 1001, "Create()/acquire-mem.ms-avg": 0, "Create()/fork-proc.cnt": 1000, "Create()/fork-proc.ms-avg": 6, "Create()/fresh-proc.cnt": 1, "Create()/fresh-proc.ms-avg": 135, "Create()/make-root-fs.cnt": 1001, "Create()/make-root-fs.ms-avg": 1, "Destroy().cnt": 1981, "Destroy().ms-avg": 6, "Destroy()/detach-root.cnt": 1001, "Destroy()/detach-root.ms-avg": 0, "Destroy()/kill-procs.cnt": 1001, "Destroy()/kill-procs.ms-avg": 7, "Destroy()/remove-root.cnt": 1001, "Destroy()/remove-root.ms-avg": 0, "LambdaFunc.Invoke.cnt": 1000, "LambdaFunc.Invoke.ms-avg": 38, "Pause().cnt": 2000, "Pause().ms-avg": 9, "ServeHTTP.cnt": 1000, "ServeHTTP.ms-avg": 18, "Unpause().cnt": 999, "Unpause().ms-avg": 0, "childExit().cnt": 1000, "childExit().ms-avg": 3, "evict.cnt": 980, "evict.ms-avg": 12, "fork().cnt": 1000, "fork().ms-avg": 6, "forkRequest.cnt": 1000, "forkRequest.ms-avg": 5, "fresh-cgroup.cnt": 40, "fresh-cgroup.ms-avg": 0, "move-to-cg-after-fork.cnt": 1000, "move-to-cg-after-fork.ms-avg": 0, "pull-lambda.cnt": 1000, "pull-lambda.ms-avg": 2, "web-request.cnt": 1000, "web-request.ms-avg": 38 }, "errors": [], "worker_tail": [ "2020/08/07 21:51:51 remove /sys/fs/cgroup/freezer/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:51 remove /sys/fs/cgroup/hugetlb/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:51 remove /sys/fs/cgroup/memory/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:51 remove /sys/fs/cgroup/perf_event/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:51 remove /sys/fs/cgroup/systemd/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:51 remove /sys/fs/cgroup/pids/test-dir-sandboxes [CGROUP POOL test-dir-sandboxes]", "2020/08/07 21:51:51 save stats to /root/open-lambda/test-dir/worker/stats.json", "2020/08/07 21:51:51 remove worker.pid", "2020/08/07 21:51:51 exiting", "" ] } POP conf: {'registry': '/tmp/tmps_7bi0a2'} POP conf: {'features': {'reuse_cgroups': True}} POP conf: {'limits': {'installer_mem_mb': 250}} PASSED: 17, FAILED: 1 Makefile:27: recipe for target 'test-all' failed make: *** [test-all] Error 1