Sagi
Sagi

Reputation: 329

Benchmark the performance of file systems

I'm taking Computer Organization class this semester.

My professor give us a homework.the description is as follows:

Write a program to benchmark the two file systems, Windows and Linux. Discuss which performs better.

I want to use C to implement this homework assignment, but I have no idea how to start.

What functions do I need? What I can do?

Please give me some hints or example.

Upvotes: 2

Views: 1254

Answers (2)

Conrad Meyer
Conrad Meyer

Reputation: 2897

Some interesting data points just for file reads/writes:

  • cold cache vs hot cache,
  • single-thread? concurrent threads?
  • posix aio vs windows overlapped i/o (single thread? multiple threads?)

You might also measure speed of directory enumeration and traversal.

Keep in mind that both Linux and Windows support many filesystems; ext4 and NTFS are the most widely used for Linux and Windows respectively.

What functions should you use? For unix, there's the basic read(2) and write(2) calls (for normal, blocking IO). Windows has ReadFile and WriteFile.

Upvotes: 2

René Höhle
René Höhle

Reputation: 27325

You could download the sources from bonie++ and look how they to this.

But i think the best way is that you write to your HDD and look how long it takes to write or read the defined data.

Upvotes: 3

Related Questions