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

Shared memory support for NVIDIA Jetson Orin: engineering build #581

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

jkuro-tii
Copy link
Contributor

Description of changes

Checklist for things done

  • [ X] Summary of the proposed changes in the PR description
  • More detailed description in the commit message(s)
  • Commits are squashed into relevant entities - avoid a lot of minimal dev time commits in the PR
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • PR linked to architecture documentation and requirement(s) (ticket id)
  • Test procedure described (or includes tests). Select one or more:
    • Tested on Lenovo X1 x86_64
    • Tested on Jetson Orin NX or AGX aarch64
    • Tested on Polarfire riscv64
  • Author has run nix flake check --accept-flake-config and it passes
  • All automatic Github Action checks pass - see actions
  • Author has added reviewers and removed PR draft status

Testing

Overall scenario:

  • login to two test virtual machines
  • run the memsocket demon and the memtest program of both sides
  • verify results

STEPS:

On the NVIDIA console open two windows.

In the first window run the following commands:

# Login from host to netvm, as test VMs are unavailable from host
ssh 192.168.101.1
# login to the first vm:
ssh test1-vm.ghaf
#start shared memory - socket demon and the test application listener
memsocket -c ./test.sock &
memtest ./test.sock

------------------------ terminal output ------------------------

`
[ghaf@ghaf-host:~]$ ssh 192.168.101.1
(ghaf@192.168.101.1) Password:
Last login: Fri Jul 28 09:38:54 2023 from 192.168.101.2
[ghaf@net-vm:~]$ ssh test1-vm.ghaf
(ghaf@test1-vm.ghaf) Password:
Last login: Fri Jul 28 09:31:38 2023 from 192.168.100.1

[ghaf@test1-vm:~]$ memsocket -c ./test.sock &
[1] 698

[ghaf@test1-vm:~]$ memtest ./test.sock
Waiting for a connection.
`
------------------------------------------------------------------------

In the second window run the following commands:

# Login from host to netvm, as test VMs are unavailable from host
ssh 192.168.101.1
# login to the second vm:
ssh test2-vm.ghaf
#start shared memory - socket demon and the test application sender
memsocket -s ./test.sock 3 &
memtest ./test.sock /dev/random 100M
#verify results on both windows
`
[ghaf@ghaf-host:~]$ ssh 192.168.101.1
(ghaf@192.168.101.1) Password:
Last login: Fri Jul 28 09:38:54 2023 from 192.168.101.2
[ghaf@net-vm:~]$ ssh test2-vm.ghaf
(ghaf@test2-vm.ghaf) Password:
Last login: Fri Jul 28 09:41:05 2023 from 192.168.100.1
[ghaf@test2-vm:~]$ memsocket -s ./test.sock 3 &
[1] 721

[ghaf@test2-vm:~]$ memtest ./test.sock /dev/random 100M
Sent/received 104857601 bytes 8 Mbytes/sec
real 12.230s
user 0.380s
sys 0.450s

[ghaf@test2-vm:~]$

`

Signed-off-by: Jaroslaw Kurowski <jaroslaw.kurowski@tii.ae>
Signed-off-by: Jaroslaw Kurowski <jaroslaw.kurowski@tii.ae>
Signed-off-by: Jaroslaw Kurowski <jaroslaw.kurowski@tii.ae>
@jkuro-tii jkuro-tii temporarily deployed to internal-build-workflow April 29, 2024 12:20 — with GitHub Actions Inactive
@jkuro-tii jkuro-tii requested a deployment to external-build-workflow April 29, 2024 12:21 — with GitHub Actions Waiting
@jkuro-tii jkuro-tii requested a review from vadika April 29, 2024 12:21
Signed-off-by: Jaroslaw Kurowski <104357443+jkuro-tii@users.noreply.github.com>
@jkuro-tii jkuro-tii temporarily deployed to internal-build-workflow April 29, 2024 12:23 — with GitHub Actions Inactive
@jkuro-tii jkuro-tii requested a deployment to external-build-workflow April 29, 2024 12:23 — with GitHub Actions Waiting
Signed-off-by: Jaroslaw Kurowski <jaroslaw.kurowski@tii.ae>
@jkuro-tii jkuro-tii temporarily deployed to internal-build-workflow April 29, 2024 12:31 — with GitHub Actions Inactive
@jkuro-tii jkuro-tii requested a deployment to external-build-workflow April 29, 2024 12:31 — with GitHub Actions Waiting
@jkuro-tii jkuro-tii temporarily deployed to internal-build-workflow May 23, 2024 06:25 — with GitHub Actions Inactive
@jkuro-tii jkuro-tii requested a deployment to external-build-workflow May 23, 2024 06:25 — with GitHub Actions Waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant