[gem5-dev] [XS] Change in gem5/gem5[develop]: util: Add 'swapspace' daemon to runner VM.

2023-07-06 Thread Bobby Bruce (Gerrit) via gem5-dev
Bobby Bruce has submitted this change. (  
https://gem5-review.googlesource.com/c/public/gem5/+/71680?usp=email )


Change subject: util: Add 'swapspace' daemon to runner VM.
..

util: Add 'swapspace' daemon to runner VM.

As these VMs, particularly the runners, don't have much memory, the
'swapspace' daemon allows for dynamic swap spaces to be created for when
more memory is required.

Change-Id: Ie8e734a8fde54e122df33dda187c6c4aafdcd006
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/71680
Maintainer: Bobby Bruce 
Tested-by: kokoro 
Reviewed-by: Bobby Bruce 
---
M util/github-runners-vagrant/Vagrantfile-builder
M util/github-runners-vagrant/Vagrantfile-runner
2 files changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Bobby Bruce: Looks good to me, approved; Looks good to me, approved
  kokoro: Regressions pass




diff --git a/util/github-runners-vagrant/Vagrantfile-builder  
b/util/github-runners-vagrant/Vagrantfile-builder

index cd36e78..c0c2380 100644
--- a/util/github-runners-vagrant/Vagrantfile-builder
+++ b/util/github-runners-vagrant/Vagrantfile-builder
@@ -20,6 +20,9 @@
   # sets up vm
   config.vm.provision :shell, path: "provision_root.sh"
   config.vm.provision :shell, privileged: false,  
path: "provision_nonroot.sh"
+  # To ensure we don't run out of memory, we enable dynamic Swap Space.  
This is
+  # done via the "swapspace" daemon:  
https://pqxx.org/development/swapspace/

+  config.vm.provision :shell, inline: "sudo apt install swapspace -y"
   # The provision_root.sh adds the vagrant user to the docker group, so we  
need to reload the VM.

   config.vm.provision :reload
   config.vm.provision :shell, run: 'always', inline: <<-SHELL
diff --git a/util/github-runners-vagrant/Vagrantfile-runner  
b/util/github-runners-vagrant/Vagrantfile-runner

index 854e5f5..eb4054e 100644
--- a/util/github-runners-vagrant/Vagrantfile-runner
+++ b/util/github-runners-vagrant/Vagrantfile-runner
@@ -20,6 +20,9 @@
   # sets up vm
   config.vm.provision :shell, path: "provision_root.sh"
   config.vm.provision :shell, privileged: false,  
path: "provision_nonroot.sh"
+  # To ensure we don't run out of memory, we enable dynamic Swap Space.  
This is
+  # done via the "swapspace" daemon:  
https://pqxx.org/development/swapspace/

+  config.vm.provision :shell, inline: "sudo apt install swapspace -y"
   # The provision_root.sh adds the vagrant user to the docker group, so we  
need to reload the VM.

   config.vm.provision :reload
   config.vm.provision :shell, run: 'always', inline: <<-SHELL

--
To view, visit  
https://gem5-review.googlesource.com/c/public/gem5/+/71680?usp=email
To unsubscribe, or for help writing mail filters, visit  
https://gem5-review.googlesource.com/settings?usp=email


Gerrit-MessageType: merged
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ie8e734a8fde54e122df33dda187c6c4aafdcd006
Gerrit-Change-Number: 71680
Gerrit-PatchSet: 2
Gerrit-Owner: Bobby Bruce 
Gerrit-Reviewer: Bobby Bruce 
Gerrit-Reviewer: Gabe Black 
Gerrit-Reviewer: kokoro 
Gerrit-CC: kokoro 
___
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org


[gem5-dev] [XS] Change in gem5/gem5[develop]: util: Add 'swapspace' daemon to runner VM.

2023-06-13 Thread Bobby Bruce (Gerrit) via gem5-dev
Bobby Bruce has uploaded this change for review. (  
https://gem5-review.googlesource.com/c/public/gem5/+/71680?usp=email )



Change subject: util: Add 'swapspace' daemon to runner VM.
..

util: Add 'swapspace' daemon to runner VM.

As these VMs, particularly the runners, don't have much memory, the
'swapspace' daemon allows for dynamic swap spaces to be created for when
more memory is required.

Change-Id: Ie8e734a8fde54e122df33dda187c6c4aafdcd006
---
M util/github-runners-vagrant/Vagrantfile-builder
M util/github-runners-vagrant/Vagrantfile-runner
2 files changed, 6 insertions(+), 0 deletions(-)



diff --git a/util/github-runners-vagrant/Vagrantfile-builder  
b/util/github-runners-vagrant/Vagrantfile-builder

index cd36e78..c0c2380 100644
--- a/util/github-runners-vagrant/Vagrantfile-builder
+++ b/util/github-runners-vagrant/Vagrantfile-builder
@@ -20,6 +20,9 @@
   # sets up vm
   config.vm.provision :shell, path: "provision_root.sh"
   config.vm.provision :shell, privileged: false,  
path: "provision_nonroot.sh"
+  # To ensure we don't run out of memory, we enable dynamic Swap Space.  
This is
+  # done via the "swapspace" daemon:  
https://pqxx.org/development/swapspace/

+  config.vm.provision :shell, inline: "sudo apt install swapspace -y"
   # The provision_root.sh adds the vagrant user to the docker group, so we  
need to reload the VM.

   config.vm.provision :reload
   config.vm.provision :shell, run: 'always', inline: <<-SHELL
diff --git a/util/github-runners-vagrant/Vagrantfile-runner  
b/util/github-runners-vagrant/Vagrantfile-runner

index 854e5f5..eb4054e 100644
--- a/util/github-runners-vagrant/Vagrantfile-runner
+++ b/util/github-runners-vagrant/Vagrantfile-runner
@@ -20,6 +20,9 @@
   # sets up vm
   config.vm.provision :shell, path: "provision_root.sh"
   config.vm.provision :shell, privileged: false,  
path: "provision_nonroot.sh"
+  # To ensure we don't run out of memory, we enable dynamic Swap Space.  
This is
+  # done via the "swapspace" daemon:  
https://pqxx.org/development/swapspace/

+  config.vm.provision :shell, inline: "sudo apt install swapspace -y"
   # The provision_root.sh adds the vagrant user to the docker group, so we  
need to reload the VM.

   config.vm.provision :reload
   config.vm.provision :shell, run: 'always', inline: <<-SHELL

--
To view, visit  
https://gem5-review.googlesource.com/c/public/gem5/+/71680?usp=email
To unsubscribe, or for help writing mail filters, visit  
https://gem5-review.googlesource.com/settings?usp=email


Gerrit-MessageType: newchange
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ie8e734a8fde54e122df33dda187c6c4aafdcd006
Gerrit-Change-Number: 71680
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby Bruce 
___
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org