Tiny Core Linux
		Tiny Core Base => TCB Q&A Forum => Topic started by: floppy on June 27, 2011, 04:28:49 PM
		
			
			- 
				Hello,
I have extensions on an HDD and would move them all to a CF or to an USB if the extension loading (onboot or ondemand) is quicker. But, how to know which medium is the best in the reading access aspect?
Does exist a method how to benchmark the loading of extensions? (different from looking at a watch..).
Even with my 2 different HDDs, I have the feeling the reading acess is different. So, I would like to know if there is a method to benchmark the different storages places of my PC (reading access/loading to RAM) for finding the optimal data structure.
Thanks.
			 
			
			- 
				A stopwatch is the most accurate.
That said, things like using dd to read a raw partition or file, tar all of your files to a file in memory (ie on tmpfs; no compression) and bonnie on a raw partition or file may be representative of relative performance.
			 
			
			- 
				A stopwatch still has the human element, you could use bootchart for more accurate readings (see the wiki).
edit: Depends on what you want to measure of course. If extension loading at boot, bootchart; if general read performance, hdparm -tT or the like. Seeks may factor in to extension loading while they would have no effect on sequential reads.
			 
			
			- 
				you could do e.g. hdparm -tT /dev/sda  to run a simple benchmark (it's non destructive) on a device.
also, if printk was timed (is it?) you might observe the kernel messages to see how fast the system goes up.
			 
			
			- 
				
you could use bootchart for more accurate readings (see the wiki).
I could not find the topic in the wiki. Where is it?
			 
			
			- 
				
also, if printk was timed (is it?) you might observe the kernel messages to see how fast the system goes up.
how to? as a boot code? 
the output will be accessible via "messages" in "control panel"? or anywhere else?
			 
			
			- 
				http://wiki.tinycorelinux.net/wiki:bootchart
			
 
			
			- 
				Hi floppy
You could set up a small script that loads your extensions. Then boot using the  base  boot code.
Now open a terminal and enter   time ./scriptname   and it will tell you how long it took.
			 
			
			- 
				
  and it will tell you how long it took.
simple good. how to print the time before and after loading in the script? "print $time" or something similar?
			 
			
			- 
				Hi floppy
Use the command as I listed it. It will actually tell you how long it took to complete.
The time command does not tell you what time it is, it times a command.
For example, if you enter
time ls -l
at the command line it will tell you how long it took to get a directory listing.
			 
			
			- 
				very sorry. I did not read it correctly. reason is perhaps the 0,4l white wine from france.. and my wife laptop on the kitchen table allowing to read the forum...
			
 
			
			- 
				Some time consuming activities during boot are:
[    1.714829] isapnp: Scanning for PnP cards...
[    2.028141] isapnp: No Plug & Play device found   so, I will try with the boot code noisapnp
[    2.039404] 00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    5.053405] floppy0: no floppy controllers found
how to avoid a floppy scan?.. I dismounted the floppy drive to have less hardware for scanning..
[   20.630663] JBD: barrier-based sync failed on hda2-8 - disabling barriers
[   42.698903] JBD: barrier-based sync failed on hdd3-8 - disabling barriers
[   65.952414] eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
What does mean the message at 20.63 ? Can I speed up the activity by doing something?
			 
			
			- 
				
how to avoid a floppy scan?
Did the boot code floppy=0,irq prevent the scan?
			 
			
			- 
				Hi floppy
how to avoid a floppy scan?
You definitely do not want the computer scanning you.  ;D
			 
			
			- 
				
Hi floppy
how to avoid a floppy scan?
You definitely do not want the computer scanning you.  ;D
Rich, floppy is dead http://forum.tinycorelinux.net/index.php?topic=9313.0 and we could not find any bones of it. So, no scanning is possible of this poor animal.
and I was sure, I would one time have a comment on this nick.. so, the time came with you. Congratulation.
If you mean I should post a scan af myself here, in fact, Ii would not like to make anybody jalous of few oversized components..  ;D
this is probably not the case for my pc: this piece of history is not really oversized. 
			 
			
			- 
				
how to avoid a floppy scan?
Did the boot code floppy=0,irq prevent the scan?
great: with the boot codes "noisapnp" and "floppy=0,irq" the boot time was reduced by 3,32s.