LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2015, 07:30 PM   #1
linux_walt
Member
 
Registered: Dec 2014
Location: Houston, TX
Distribution: Debian wheezy
Posts: 127

Rep: Reputation: 29
Would mounting a file system 'tree' to /mnt create a bottleneck?


A little embarassed to even ask this, but...

In the last few evenings, a typical Linux session has been creating a root file system on an SD card, mounted on /mnt/sd2 (partition2 of card). At the same time watching a movie from the HD, mounted at /mnt/HD.

I was wondering if everything going through /mnt might be slowing things down at all. The answer should be 'no' since everything is mounted to 'root' and that doesn't seem to be a problem, but maybe /mnt is handled differently than root.

Just ran an experiment with 'top' and seeing what is happening with mplayer and debian bootrap:

Code:
5562 walter    20   0 62980  23m 9.8m R  38.0  2.7   4:01.75 mplayer
 1852 root      20   0 32048  12m 3728 S   3.0  1.4   2:08.92 Xorg
 2020 walter    20   0  276m  14m   9m S   2.0  1.7   1:32.03 gnome-mplayer
 2070 root      20   0     0    0    0 D   1.0  0.0   0:25.22 mmcqd/0
Can't really tell much from this, except that 'mmcqd/0' must be the bootstrap program unpacking things in the sd card. It kind of begs dumb question number 2: the unpacking process is crawling down the terminal screen, why is it not using more cpu to speed itself up? Must be the sd card can only accept writing to it at that speed, average about 1 second per package? Can't pull the card out at the moment, but pretty shure it's class 10, although suspiciously cheap from Eb.

Last edited by linux_walt; 02-04-2015 at 07:57 PM.
 
Old 02-04-2015, 08:17 PM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
AFAIK, /mnt is a mount point, just like /, /var, /home, whatever else. It should not affect speed drastically.

What do you mean by crawling down the terminal screen? Text is slow to print? What terminal? I found that certain terminals are just slower than others. An example: hen I was working on a PSP game project a while back if I used GNOME Terminal, printing debugging messages would slow the terminal and PSP to a crawl; using xterm would be smooth as silk on both.
 
Old 02-04-2015, 08:24 PM   #3
linux_walt
Member
 
Registered: Dec 2014
Location: Houston, TX
Distribution: Debian wheezy
Posts: 127

Original Poster
Rep: Reputation: 29
Hi goumba, apologies, by terminal I meant a remote ssh connection, I didn't make that clear.
 
Old 02-05-2015, 03:31 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Well mounting two block devices in a separate subdirectory of /mnt doesn't slows it down.

Speed of SD card class 10 is usually 10MB/sec read or write. It's not that fast to slow down system of nowadays.

Compare with SATA Hard drive transfering at 100-200MB/sec.

Printing in a terminal actually slow downs whatever be the process. You can try a large file unpacking and observe time with terminal output and without.
 
2 members found this post helpful.
Old 02-05-2015, 07:23 PM   #5
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Quote:
Originally Posted by linux_walt View Post
Hi goumba, apologies, by terminal I meant a remote ssh connection, I didn't make that clear.
Ah. Well, that's limited by other factors as well. Bandwidth, maybe a limitation on the sending end. I don't know your setup.

As veerain stated, printing output slows down the process as well. It has to send the text to the console, and in this case over ssh as well. Don't know what you're using, but if you don't need the output then disable it. Tools like gnu tar are actually silent except for an error, or unless you tell it to be verbose.

If you need the output, maybe piping to a file then check after the process is done will speed it up (not sure to the extent, or if that will even make a difference, never tried).
 
Old 02-05-2015, 08:51 PM   #6
linux_walt
Member
 
Registered: Dec 2014
Location: Houston, TX
Distribution: Debian wheezy
Posts: 127

Original Poster
Rep: Reputation: 29
Hi goumba, I'm just going to accept the following:

Making several sub-mounts on /mnt is not really a problem.
Until someone figures out how to unpack things in parallel, a 1 Ghz processor is going to be slow, even if it has 2 ARMs (my first Linux joke!). Even slower if you are watching it remotely.

Another interesting thing has cropped up today, but will leave that for another question. Rhetorically speaking though, why in the heck are there 3 places to set environment variables for booting: default settings in kernel, boot.scr, and uEnv.txt. If it were windows I'd have given up by now, but since it's Linux, I'm sure there's an elegant complexity behind it all, just to make a simple task more interesting: 'this' is my monitor, my root partition is 'there', post your progress 'over here'. At the moment it feels like trying to coordinate three drunks. But that's a question for another post. Just a rant here.

Last edited by linux_walt; 02-05-2015 at 09:00 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system-config-packages --tree=/mnt/nfs Problem Stang_Man Linux - Enterprise 5 04-25-2007 12:17 AM
Unable to create a tar file from spanning a directory tree? R00ts Linux - General 2 11-01-2006 10:15 AM
Mounting windows xp file system, creates mnt point, however, cant read files in share cmd0a0 Linux - Networking 10 04-16-2005 12:28 AM
cannot create directory `/mnt/win_d/MP3': Read-only file system PapaJac Mandriva 11 03-04-2004 05:25 AM
cannot create directory `/mnt/win_d/MP3': Read-only file system PapaJac Mandriva 0 03-02-2004 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration