活动介绍
file-type

Ubuntu20.04离线安装iperf3工具详解

下载需积分: 41 | 92KB | 更新于2024-10-22 | 133 浏览量 | 13 下载量 举报 1 收藏
download 立即下载
perf是Linux系统中的性能分析工具,可以用于性能分析和优化。perf3是perf工具的第三个版本,它提供了一系列的性能分析功能,可以帮助开发者找出程序的性能瓶颈。由于网络问题或特殊环境下,可能需要在离线环境中进行安装。我们将详细讲解如何在Ubuntu 20.04离线环境下安装perf3,确保读者可以顺利进行性能分析工作。" 知识点1: Ubuntu 20.04 Ubuntu 20.04是Ubuntu Linux发行版的第20.04版本,代号为"Focal Fossa"。Ubuntu是基于Debian的Linux操作系统,以易用性和稳定性著称。Ubuntu 20.04使用了长期支持(LTS)版本,意味着它将得到 Canonical 公司的五年支持,包括系统更新、安全补丁和驱动程序更新。 知识点2: 离线安装 离线安装是指在没有互联网连接的环境下安装软件的过程。在离线环境中,通常需要将软件包下载到有网络的计算机上,然后转移到目标机器上进行安装。对于Linux系统,常见的离线安装方式包括使用apt-offline或者手动挂载软件包。 知识点3: perf perf是Linux内核中的一个内置性能分析工具,它提供了对系统性能数据的收集、分析能力。perf能够从系统的各个层面(如CPU、内存、网络等)收集性能数据,帮助用户了解系统在运行时的性能状况。 知识点4: perf3 perf3指的是perf工具的第三个版本。与旧版本相比,perf3带来了许多改进和新特性,比如更好的事件支持、更全面的性能数据收集和分析等。perf3支持所有现代Linux内核,并且能够为开发者提供更详细和更准确的性能分析结果。 知识点5: iperf3 尽管本资源的标签中包含了"iperf3",但实际上iperf3和perf是两个完全不同的工具。iperf3是一个网络性能测试工具,用于测量网络带宽,网络延迟,丢包等网络性能参数。而perf则是Linux内核中的性能分析工具。虽然两者名称相似且都在性能测试领域发挥作用,但它们在使用和功能上是不相同的。 知识点6: apt软件包管理器 在Ubuntu和Debian系统中,apt是一个强大的软件包管理器,用于管理软件包的安装、更新、卸载和依赖关系的解决。它使用仓库的概念来管理软件包。但在离线安装的场景中,我们需要手动下载或使用其他方式获取软件包,然后使用"dpkg"命令进行安装。 知识点7: dpkg命令 dpkg是Debian及其衍生的Linux发行版的软件包管理工具,它是"Debian package"的缩写。dpkg命令可以用来安装、构建、删除和管理Ubuntu上的Deb包。在没有网络的环境下,dpkg可以用于安装本地Deb文件。 知识点8: 手动离线安装perf3的步骤 1. 在有网络连接的机器上,下载perf3的Deb包。可以通过apt下载当前运行的Ubuntu系统的perf3包。 2. 将下载好的Deb包复制到离线的Ubuntu机器上。 3. 在Ubuntu离线机器上,使用dpkg命令安装Deb包。命令可能如下:sudo dpkg -i iperf3_3.6-1_amd64.deb。 4. 安装过程中,可能需要手动解决依赖关系,可以通过下载依赖包的方式解决。 5. 安装完成后,可以使用perf命令来检查perf3是否安装成功。 注意:手动离线安装时,确保下载的perf3版本与目标Ubuntu系统架构(如amd64)相匹配,并且要确保所有依赖的包都已安装。

相关推荐

filetype

Requirements The code is tested on clean Ubuntu 20.04 with ROS noetic installation. Install the required package toppra: sudo pip3 install toppra catkin_pkg PyYAML empy matplotlib pyrfc3339 Run the code 1. Download and compile the code git clone https://github.com/ZJU-FAST-Lab/Primitive-Planner.git cd Primitive-Planner catkin_make -DCMAKE_BUILD_TYPE=Release 2. Generate the motion primitive library cd src/scripts python3 swarm_path.py The generated motion primitive library is stored in "src/planner/plan_manage/primitive_library/". 3. Run the planner In the "Primitive-Planner/" directory: source devel/setup.bash # or setup.zsh cd src/scripts python3 gen_position_swap.py 20 # It will generate the swarm.launch with 20 drones roslaunch primitive_planner swarm.launch Wait until all the nodes have their launch process finished and keep printing "[FSM]: state: WAIT_TARGET. Waiting for trigger". Open another terminal, publish the trigger cd src/scripts bash pub_trigger.sh Then the drones (drone number is 40) will start to fly like this Change the drone number when executing "python3 gen_position_swap.py <drone_number>". Before starting the "roslaunch" command, please open another terminal and run "htop" to monitor the Memory usage and CPU usage. Each drone requires about 200 MB memory. Keep the htop opened for entire flight. The computation time is printed on the terminal in blue text, named as "plan_time". To get the accurate computation time, please fix the CPU frequency to its maximum by sudo apt install cpufrequtils sudo cpufreq-set -g performance Otherwise the CPU will run in powersave mode with low frequency分析代码,生成复现过程