Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: flawd on April 01, 2015, 04:12:30 AM

Title: Tiny Core runs off RAM?
Post by: flawd on April 01, 2015, 04:12:30 AM
So from what I understand, and correct me if I am wrong here, each time the PC boots up... the Linux Kernal and Core.gz  file are copied from the boot partition and run on your Memory?

How do I check if I am running off Memory/RAM? How do I test the read/write speeds if it is running, wil hdparm work?


Sorry if some of the questions may seem silly, just starting to learn more about linux.
Title: Re: Tiny Core runs off RAM?
Post by: Juanito on April 01, 2015, 04:27:48 AM
You are correct, in tinycore vmlinuz and core.gz are loaded in ram and run from there.

By default extensions are loop mounted, but you can set the copy2fs flag using the apps gui and load all extensions to ram.

There is an hdparm extension - I'm not sure if it tests read/write speeds with a dummy file(s) or not.
Title: Re: Tiny Core runs off RAM?
Post by: bmarkus on April 01, 2015, 04:37:47 AM
You can check R/W speed using dd command
Title: Re: Tiny Core runs off RAM?
Post by: flawd on April 01, 2015, 12:55:38 PM
Thanks for tips guys.

I looked up the dd  command,
Code: [Select]
dd if=path/to/input_file of=/path/to/output_file bs=block_size count=number_of_blocksIt also said I had to mount the drive then navigate into it via terminal and run the command.
Code: [Select]
$ dd if=/dev/zero of=./largefile bs=1M count=1024But where am I navigating to in this case? It wouldn't be /dev/sda?

You are correct, in tinycore vmlinuz and core.gz are loaded in ram and run from there.

By default extensions are loop mounted, but you can set the copy2fs flag using the apps gui and load all extensions to ram.

Are these the loops I have been seeing when I run ps? There are 34 processes start with loop0-loop33, I was wondering what those were.
Title: Re: Tiny Core runs off RAM?
Post by: patrikg on April 01, 2015, 01:35:45 PM
You should use "time" command combined with "dd" command to measure.


Title: Re: Tiny Core runs off RAM?
Post by: Rich on April 01, 2015, 02:54:16 PM
Hi flawd
Quote
Are these the loops I have been seeing when I run ps? There are 34 processes start with loop0-loop33, I was wondering what those were.
Yes, those are extensions.
If you use the  dd  command from  coreutils.tcz  it gives transfer rate:
Code: [Select]
tc@box:~/findpcs/src/rollcall$ dd if=/dev/zero of=./largefile bs=1K count=10
10+0 records in
10+0 records out
10240 bytes (10 kB) copied, 0.000346467 s, 29.6 MB/s
tc@box:~/findpcs/src/rollcall$
Be very careful using the  dd  command. If you get the  of=  parameter wrong you can easily wipe out a hard drive.