[haiku-bugs] Re: [Haiku] #5137: [PATCH] Compressed Kernel and Modules.

  • From: "Grey" <trac@xxxxxxxxxxxx>
  • Date: Thu, 17 Dec 2009 10:13:46 -0000

#5137: [PATCH] Compressed Kernel and Modules.
 Reporter:  Grey                    |       Owner:  axeld    
     Type:  enhancement             |      Status:  new      
 Priority:  normal                  |   Milestone:  R1       
Component:  System/Boot Loader      |     Version:  R1/alpha1
 Keywords:  compressed kernel CELF  |   Blockedby:           
 Platform:  All                     |    Blocking:           

Comment(by Grey):

 Replying to [comment:1 stippi]:[[BR]]
 > ... I presume you have made some performance measurements?
 Can you give some numbers as to what speed-up you have achieved?[[BR]]

 Speed-up depend of perfomance CPU and disk.[[BR]]
 My computer - Core2 Duo P8600 2.4GHz and hard disk[[BR]]
 HITACHI HTS542525K9SA00 5400rpm.[[BR]]
 Raw measurements of "load kernel+modules":[[BR]]
 Compression level 0 - 401218 CPU ticks (Syste_time() use rdtsc)[[BR]]
 Compression level 6 - 293753 CPU ticks (Syste_time() use rdtsc)[[BR]]
 But ticks is not real time.[[BR]]
 Simple time estimation:[[BR]]
 Uncompressed kernel+modules size s=1.4M[[BR]]
 Compressed kernel+modules size S=3.9M[[BR]]
 Delta size = S-s = 1.5M[[BR]]
 Hard disk read speed - V=50M/s; SSD V=200M/s; USB flush V=10M/s; CD
 Delta time =(S-s)/V[[BR]]

 > ...I spotted some coding style violations, particularily, we put spaces
 around operators such as + and *...

 Ok. Style improved patch attached.
 BTW, how about using C/C++ stylers like indent, astyle or BCPP? Is there
 standart parameters for Haiku style?

Ticket URL: <http://dev.haiku-os.org/ticket/5137#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: