-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #653 from lukemartinlogan/master
Improvements to RAM utilization, concurrency control, and RPCs
- Loading branch information
Showing
217 changed files
with
15,518 additions
and
14,360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,68 @@ make install | |
## Contributing | ||
|
||
We follow the [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html). You can run `make lint` to ensure that your code conforms to the style. This requires the `cpplint` Python module (`pip install cpplint`). Alternatively, you can let the CI build inform you of required style changes. | ||
|
||
## Docker | ||
|
||
Build container with Hermes dependencies: | ||
``` | ||
docker build -t lukemartinlogan/hermes_deps . -f docker/deps.Dockerfile | ||
``` | ||
|
||
Run the container with the Hermes source mounted: | ||
``` | ||
docker run -it --mount src=${PWD},target=/hermes,type=bind \ | ||
--name hermes_deps_c \ | ||
--network host \ | ||
--memory=4G \ | ||
--shm-size=4G \ | ||
-p 4000:4000 \ | ||
-p 4001:4001 \ | ||
lukemartinlogan/hermes_deps | ||
``` | ||
|
||
Build Hermes + Jarvis (in container): | ||
``` | ||
bash /hermes/ci/build_hermes.sh | ||
``` | ||
|
||
``` | ||
docker commit hermes_deps_c lukemartinlogan/hermes_deps | ||
docker push lukemartinlogan/hermes_deps | ||
docker stop /hermes_deps_c | ||
docker rm /hermes_deps_c | ||
``` | ||
|
||
## Remote Debug | ||
|
||
### On personal machine | ||
``` | ||
[email protected] | ||
local_port=4000 | ||
remote_port=4000 | ||
ssh -L ${local_port}:localhost:${remote_port} -fN ${ares_node} | ||
local_port=4001 | ||
remote_port=4001 | ||
ssh -L ${local_port}:localhost:${remote_port} -fN ${ares_node} | ||
``` | ||
|
||
On Ares | ||
``` | ||
ares_node=ares-comp-27 | ||
local_port=4000 | ||
remote_port=4000 | ||
ssh -L ${local_port}:localhost:${remote_port} -fN ${ares_node} | ||
local_port=4001 | ||
remote_port=4001 | ||
ssh -L ${local_port}:localhost:${remote_port} -fN ${ares_node} | ||
``` | ||
|
||
Find PIDs of processes using ports | ||
``` | ||
lsof -i :4000 | ||
lsof -i :4001 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.