From ae666a9a016b0c9038799c982f749e30b585762b Mon Sep 17 00:00:00 2001 From: Yash Lala Date: Mon, 30 Dec 2024 17:23:30 -0800 Subject: [PATCH 1/2] fix: wrong dependency order in rswap client Makefile. --- remoteswap/client/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remoteswap/client/Makefile b/remoteswap/client/Makefile index 49db22788..51fd6fb28 100644 --- a/remoteswap/client/Makefile +++ b/remoteswap/client/Makefile @@ -17,9 +17,9 @@ RSWAP_ROOT_PATH := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) ifneq ($(LINUXINCLUDE),) LINUXINCLUDE := \ + $(LINUXINCLUDE) \ -I$(OFA_INCLUDE) \ - -I$(RSWAP_ROOT_PATH)/.. \ - $(LINUXINCLUDE) + -I$(RSWAP_ROOT_PATH)/.. else export KBUILD_EXTRA_SYMBOLS=$(OFA_SYMVERS) From 972eebea97af29cea66c296df548978ce783176b Mon Sep 17 00:00:00 2001 From: Yash Lala Date: Mon, 30 Dec 2024 17:26:15 -0800 Subject: [PATCH 2/2] fix: recommend building w/ OFED 5.4-3.7.5.0-LTS. --- README.md | 2 +- remoteswap/README.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 98e40bb76..4b337663b 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Hardware: Software: * OS: Ubuntu 18.04/20.04 * gcc 7.5.0/9.4.0 -* Mellanox OFED driver: 5.4-3.1.0.0-LTS (for ConnectX-5 and 6), or 4.9-4.1.7.0-LTS (for ConnectX-3). +* Mellanox OFED driver: 5.4-3.7.5.0-LTS (for ConnectX-5 and 6), or 4.9-4.1.7.0-LTS (for ConnectX-3). ## Build & Install Hermit Next we will use Ubuntu 20.04 as an example to show how to build and install the kernel. It is not required but highly recommended to have the same kernel version for both host and memory server. diff --git a/remoteswap/README.md b/remoteswap/README.md index 8ecae37b9..621f820d3 100644 --- a/remoteswap/README.md +++ b/remoteswap/README.md @@ -11,7 +11,7 @@ Hardware: Software: * OS: Ubuntu 18.04/20.04 * gcc 7.5.0/9.4.0 -* Mellanox OFED driver: 5.4-3.1.0.0-LTS (for ConnectX-5 and 6), or 4.9-4.1.7.0-LTS (for ConnectX-3). +* Mellanox OFED driver: 5.4-3.7.5.0-LTS (for ConnectX-5 and 6), or 4.9-4.1.7.0-LTS (for ConnectX-3). ## Build & Install @@ -19,9 +19,9 @@ Software: Here is an example on Ubuntu 20.04: ```bash # Download the MLNX OFED driver for the Ubuntu 20.04 -wget https://content.mellanox.com/ofed/MLNX_OFED-5.4-3.1.0.0/MLNX_OFED_LINUX-5.4-3.1.0.0-ubuntu20.04-x86_64.tgz -tar xzf MLNX_OFED_LINUX-5.4-3.1.0.0-ubuntu20.04-x86_64.tgz -cd MLNX_OFED_LINUX-5.4-3.1.0.0-ubuntu20.04-x86_64 +wget https://content.mellanox.com/ofed/MLNX_OFED-5.4-3.7.5.0/MLNX_OFED_LINUX-5.4-3.7.5.0-ubuntu20.04-x86_64.tgz +tar xzf MLNX_OFED_LINUX-5.4-3.7.5.0-ubuntu20.04-x86_64.tgz +cd MLNX_OFED_LINUX-5.4-3.7.5.0-ubuntu20.04-x86_64 # Install the MLNX OFED driver against linux-5.14-rc5 sudo ./mlnxofedinstall --add-kernel-support --force