Raspberry Pi 4B Maintenance Guide - pip3 & disk performance test

Open
#13 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
linux, python, raspberry-pi

Research direction

No repository file, test, or entry point is named. Start by locating the existing Raspberry Pi or maintenance documentation, then compare its conventions with the commands and links in the issue; done means the pip installation and disk read/write tests are documented in the appropriate guide.

Written by the indexing model from the issue text.

Description

1.Install pip
#python3 -m pip install

/usr/bin/python3: No module named pip

You need to install python3-pip

#apt install python3-pip

2.Performance disk write performance test

Perform write perf test on root disk, just write a file to /tmp/temp.file
sudo dd if=/dev/zero of=/tmp/temp.file oflag=direct bs=128k count=8k

Perform write test on /dev/sda2 which is mounted at /data:
sudo dd if=/dev/zero of=/data/temp.file oflag=direct bs=128k count=8k

3.Performance disk read performance test
sudo apt install hdparm
sudo hdparm -Ttv /dev/sda2

On my test, both the write performance on micro SD card, and Samsung EVO 840 SSD are about 15 MB/s, it is quiet slow.

Note on raspberry pi disk io performance:
https://rvprasad.medium.com/how-fast-is-i-o-on-a-raspberry-pi-3b-fbf85cd6e58d
https://github.com/rvprasad/io-perf
https://raspberrypi.stackexchange.com/questions/43618/raspberry-pi-3-micro-sd-card-speed

Dominant language
Python
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from davideuler/programming-tips

All issues in davideuler/programming-tips

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.