OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 4:07 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: idea: performance guide
PostPosted: Mon Feb 13, 2012 12:07 pm 
Offline
Member
Member
User avatar

Joined: Sat May 17, 2008 4:05 am
Posts: 263
Location: Cyperspace, Denmark
Hey guys,
First off, it is a little while since i posted here, but that is due to the fact, that I am studying computer science now..
Which lead me into the idea, that we need a "performance/algorithm" guide, at least something to point to. When searching for the word "algorithm" the scheduler algorithms is the really once to come up .. and performance is rather the same..

So i could write a lot of standard algorithms, but that would be kind of boring (if I’m the only one) so if people think it would be a great thing to have, i could dedicate some time for it... (I’m not sure about the structure, but what about Disk performance, and alike, such "guide/tips" could be merged into an article.)

KMT DK

_________________
well, what to say, to much to do in too little space.
when it goes up hill, increase work, when it goes straight, test yourself but when going down, slow down.


Top
 Profile  
 
 Post subject: Re: idea: performance guide
PostPosted: Mon Feb 13, 2012 1:58 pm 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7614
Location: Germany
What constitutes a "good" algorithm is very much domain-dependent. You can optimize for latency, for memory footprint, throughput...

Generally speaking, and as far as I can speak "for everybody", the idea of this site is to not provide building blocks for copy & paste programming. You need to understand what you are doing in order to get anywhere. Providing copy & paste frameworks just means people get stuck in even more screwed-up situations (instead of failing early, e.g. in setting up a cross-compiler).

If somone cannot come up with good algorithms himself, cannot even be bothered to check readily available online resources, and needs a "library" of ready-made algorithms to get it done --- then OSDev isn't a good hobby for that person.

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: idea: performance guide
PostPosted: Mon Feb 13, 2012 2:03 pm 
Offline
Member
Member
User avatar

Joined: Wed Dec 01, 2010 3:41 am
Posts: 1761
Location: Hong Kong
kmtdk wrote:
So i could write a lot of standard algorithms, ...


IMO the important part of OS development is to design clean and elagent relationships between kernel entities. The implementation details that uses those algorithms is relatively minor, and most algorithms are very well searchable & documented on wikipedia and google.


Top
 Profile  
 
 Post subject: Re: idea: performance guide
PostPosted: Mon Feb 13, 2012 11:15 pm 
Offline
Member
Member

Joined: Mon Jan 03, 2011 6:58 pm
Posts: 283
I think an article could be added about performance. Not exactly how to write "high-performing" code because as Solar said, it is all very domain dependent.

But a quick article that is for when someone has a kernel up and running, and have hit performance issues. Just a quick list of places you should make sure are performing well are:

- Task Switches
- kmalloc/malloc
- etc.

Just some places people can look at their own code, and learn how to improve it because they can actually see a possible fix/increase in performance.

Other generic things could be added I'm sure, but I can't think of any right now.

- Monk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 43 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group