-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
247 additions
and
230 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 |
---|---|---|
@@ -1,29 +1,45 @@ | ||
# IbPerfMonitor: A monitoring tool for InfiniBand networks | ||
# ib-scanner: A terminal based monitoring tool for InfiniBand | ||
|
||
[![Build Status](https://travis-ci.org/hhu-bsinfo/ibperf-monitor.svg?branch=master)](https://travis-ci.org/hhu-bsinfo/ibperf-monitor) | ||
<p align="center"> | ||
<img src="logo.png" height=250> | ||
</p> | ||
|
||
This project uses the libibmad- and libibnetdisc-libraries to automatically discover all InfiniBand devices in a | ||
<p align="center"> | ||
<a href="https://travis-ci.org/hhu-bsinfo/ib-scanner"><img src="https://travis-ci.org/hhu-bsinfo/ib-scanner.svg?branch=master"></a> | ||
<a href="https://isocpp.org/"><img src="https://img.shields.io/badge/C++-11-blue.svg"></a> | ||
<a href="https://github.com/hhu-bsinfo/observatory/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-GPLv3-orange.svg"></a> | ||
</p> | ||
|
||
This project is based on <a href="https://github.com/hhu-bsinfo/detector">Detector</a>, which uses the libibmad- and libibnetdisc-libraries to automatically discover all InfiniBand devices in a | ||
network and read their performance counters. | ||
|
||
The goal of ib-scanner is to provide a simple to use frontend for Detector, allowing InfiniBand users to monitor multiple NICs at once and getting diagnostic information about their network. | ||
|
||
# Build instructions | ||
|
||
This project supports Linux only. It uses the libibmad- and libibnetdisc-libraries. CMake is used to generate build | ||
scripts. To compile everything, just run *build.sh*. | ||
|
||
# Run instructions | ||
|
||
To start the project, just execute the compiled binary *IbPerfMon* with root privileges. | ||
To start the project, just execute the compiled binary *scanner* with root privileges. | ||
|
||
On a Debian-based system, you can run theses commands to build and run the project: | ||
|
||
``` | ||
sudo apt install cmake libibmad-dev libibumad-dev libibnetdisc-dev libopensm-dev | ||
./build.sh | ||
sudo ./build/bin/IbPerfMon | ||
sudo ./build/bin/scanner | ||
``` | ||
|
||
It is also possible to start IbPerfMon in compatibility mode, where it does not need root privileges. However, it will only monitor local HCAs in this mode. | ||
It is also possible to start ib-scanner in compatibility mode, where it does not need root privileges. However, it will only monitor local HCAs, by reading their counters from the filesystem, in this mode. | ||
|
||
``` | ||
./build/bin/IbPerfMon --mode compat | ||
./build/bin/scanner --mode compat | ||
``` | ||
|
||
To get more information about the parameters, run: | ||
|
||
```` | ||
./build/bin/scanner --help | ||
```` |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
project(scanner) | ||
message(STATUS "Project " ${PROJECT_NAME}) | ||
|
||
include_directories(${IBSCANNER_SRC_DIR}) | ||
|
||
set(SOURCE_FILES | ||
${IBSCANNER_SRC_DIR}/scanner/BuildConfig.cpp | ||
${IBSCANNER_SRC_DIR}/scanner/MonitorWindow.cpp | ||
${IBSCANNER_SRC_DIR}/scanner/Scanner.cpp) | ||
|
||
add_executable(${PROJECT_NAME} ${SOURCE_FILES}) | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/infiniband/") | ||
|
||
target_link_libraries(${PROJECT_NAME} detector curses -libverbs -libmad -libnetdisc) |
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
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
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
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.