Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Pktgen to run directly on host (vs container) #42

Closed
5 tasks
taylor opened this issue Aug 8, 2018 · 1 comment
Closed
5 tasks

Setup Pktgen to run directly on host (vs container) #42

taylor opened this issue Aug 8, 2018 · 1 comment

Comments

@taylor
Copy link
Collaborator

taylor commented Aug 8, 2018

  • Update Pktgen to run directly on host (NFVbench & TRex still runs in container)
    • Modify NFVbench configuration to use correct PCI devices
    • Modify NFVbench configuration to use more cores (7)
    • Make sure enough hugepages are available in host
$ echo 5120 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
$ echo 5120 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages
  • Once running, update trex-cfg in container to set 5120 hugepages per socket instead of 512
  • File location in container /opt/trex/<trex_version>/trex-cfg
@michaelspedersen
Copy link
Collaborator

Adding some working notes until I get the setup automated:

./install_docker_prereqs.sh
sudo docker pull opnfv/nfvbench
## Run the below from correct folder (Pktgen)
sudo docker run --detach --net=host --privileged -v $PWD:/tmp/nfvbench -v /dev:/dev -v /lib/modules/$(uname -r):/lib/modules/$(uname -r) -v /usr/src:/usr/src --name nfvbench opnfv/nfvbench

## Set alias in bashrc to simplify running
alias nfvbench='sudo docker exec -it nfvbench nfvbench -c /tmp/nfvbench/nfvbench_config.cfg'

## Update trex-conf to use 5120 Hugepages instead of 512
# Enter running container
docker exec -it nfvbench /bin/bash
# Modify trex-cfg to set 5120 hugepages (/opt/trex/<version>/trex-cfg
 
## Get MACs when running TRex (for use with vBNG config)
# Run NFVbench once and write down MACs from terminal output

## Modify Pktgen/nfvbench_config.cfg as needed
# PCI addresses and number of cores should be specified

michaelspedersen added a commit that referenced this issue Aug 16, 2018
Changes to vBNG are kept mostly separate for now
michaelspedersen added a commit that referenced this issue Aug 23, 2018
Switching from SR-IOV to VPP in host. Additional code cleanup needed
michaelspedersen added a commit that referenced this issue Aug 31, 2018
Some code refactoring done, and tested working on CSIT testbed
@taylor taylor closed this as completed Nov 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

No branches or pull requests

2 participants