Measuring the Efficiency of an Operating System

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Edge
Posts: 6
Joined: Thu Jun 23, 2011 2:58 pm

Measuring the Efficiency of an Operating System

Post by Edge »

I've recently put together an operating system kernel that is organized differently than your conventional kernel. I'm looking to measure the efficiency of my kernel in depth, and compare it to a kernel such as Linux, or equivalent.

What is the unit of measurement I should use, IPC? Are there any tools that can do this for you, or can I get a log from QEMU?

This is the one roadblock I've hit in this project. Any help would be appreciated.
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: Measuring the Efficiency of an Operating System

Post by bluemoon »

In my opinion, each OS has different feature set, target usage and philosophy. In addition, modern OS may have different tuning for different usage.
Therefore it's not much you can compare.
But then, it depends on what target audience your benchmark report for. For end user, the number of desktop themes available to download may be even more meaningful than how long it take for IPC.

It's also not meaningful for benchmark any individual operation. Unless your OS outperform, say, 100 times faster than windows when copying a directory :lol: Then you can do such benchmark and put onto portfolio and attract users.
Edge
Posts: 6
Joined: Thu Jun 23, 2011 2:58 pm

Re: Measuring the Efficiency of an Operating System

Post by Edge »

I understand. However, I still want to be able to compare the speed of my kernel - maybe performing a certain operation - to the Linux kernel or equivalent.
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: Measuring the Efficiency of an Operating System

Post by bluemoon »

How about kernel call overhead? We have a thread on this yesterday.
User avatar
AndrewAPrice
Member
Member
Posts: 2303
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: Measuring the Efficiency of an Operating System

Post by AndrewAPrice »

It depends what features your OS's have in common. If you just compared IPC speed - my OS may win because IPC is nothing more than a function pointer. :) My point is, make an exhaustive test:
- Allocate and free 500 MB of random objects a million times.
- Copy a 1GB directory of 50kb files from one drive to another.
- If a common tool is on both OS's (e.g. GCC) - compare how long it takes to compile the test suites.
My OS is Perception.
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Measuring the Efficiency of an Operating System

Post by Brendan »

Hi,
Edge wrote:What is the unit of measurement I should use, IPC? Are there any tools that can do this for you, or can I get a log from QEMU?
Use something like the Phoronix Test Suite that tests the system as a whole.

Don't bother with benchmarks that only test a CPU's floating point performance or test a computers RAM bandwidth or things like that (because you're not comparing CPUs or hardware). Don't worry much about micro-benchmarks like kernel API speed or IPC "ping pong" either - these tests are good for optimising (in the same way profilers are good), but are mostly meaningless for comparing OSs.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Edge
Posts: 6
Joined: Thu Jun 23, 2011 2:58 pm

Re: Measuring the Efficiency of an Operating System

Post by Edge »

Thanks guys. I figured this one out. I did what MessiahAndrw said. I had my OS environment perform a rigorous calculation and then I compared it to that of another OS environment.
Post Reply