WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Tiny Core runs off RAM?  (Read 2734 times)

Offline flawd

  • Newbie
  • *
  • Posts: 16
Tiny Core runs off RAM?
« on: April 01, 2015, 01: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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: Tiny Core runs off RAM?
« Reply #1 on: April 01, 2015, 01: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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Tiny Core runs off RAM?
« Reply #2 on: April 01, 2015, 01:37:47 AM »
You can check R/W speed using dd command
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline flawd

  • Newbie
  • *
  • Posts: 16
Re: Tiny Core runs off RAM?
« Reply #3 on: April 01, 2015, 09:55:38 AM »
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.

Online patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 673
Re: Tiny Core runs off RAM?
« Reply #4 on: April 01, 2015, 10:35:45 AM »
You should use "time" command combined with "dd" command to measure.



Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11221
Re: Tiny Core runs off RAM?
« Reply #5 on: April 01, 2015, 11:54:16 AM »
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.