dataDesk BLOG

Welcome to the blog of Mr.G

Nature

/HOWTOS

(Last modified: March 28 2024 02:54:23)

sudo apt-get install sysbench


A good tool to test Ubuntu server performance is called "Sysbench." Sysbench is a versatile benchmarking tool that allows you to assess various aspects of system performance, including CPU, memory, disk I/O, and database performance.

Here's how you can install and use Sysbench on your Ubuntu server:

Installation:

You can install Sysbench using the following command in the terminal:


sudo apt-get install sysbench
Usage:
Once installed, you can use Sysbench to perform various types of benchmarks. Here are some common examples:

CPU Benchmark:
sysbench cpu --threads=2 run

Memory Benchmark:
sysbench memory --memory-block-size=1K --memory-total-size=10G --threads=1 run

File I/O Benchmark:
sysbench fileio --file-total-size=10G --file-test-mode=rndrw prepare
sysbench fileio --file-total-size=10G --file-test-mode=rndrw --threads=16 --time=300 --max-requests=0 run
sysbench fileio --file-total-size=10G --file-test-mode=rndrw cleanup

Database Benchmark (MySQL):
sysbench oltp_read_write --mysql-host=localhost --mysql-user=root --mysql-password=pass

Who I am

"Just me, myself, and I, exploring the universe of unknownment, embracing the mystery of what lies beyond, one star at a time."

Share this page on Facebook | X.com | Reddit

Latest Posts

  • Image Lem - Warren Buffett walked into a University of Florida classroom in 1998 ... [2098423133938356224] (1)
    Published: September 12 2026
    Read
  • Image Sam Stoffel - Jack Dorsey's simple rule for success in business [2089319019065057280]
    Published: August 19 2026
    Read
  • Image Peter-Steinberger-What-Happens-When-4.7-_1786407922546
    Published: August 16 2026
    Read
  • Image Monitor_server_action____
    Published: August 16 2026
    Read
  • Image Disk_and_RAID_testing_commands
    Published: July 31 2026
    Read

Tags

WebDev New York London AI NORWAY DIY Ideas Life Family News Clothing Invest Sports Health