Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-13-2013, 02:35 PM
|
#1
|
Senior Member
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,895
|
Sudden slowness
Ubuntu 10.04 LTS
My folder LQfiles contains ~2500 files. Just today using those files has become markedly slow.
Launching a File Browser on LQfiles takes ~2 minutes whereas it formerly took 10 seconds.
Launching an edit session on one of the files is instant. Editing runs at normal speed.
Saving the changed file under the same name ("save") is instant.
Saving the changed file under a different name ("save as") takes ~10 seconds whereas it formerly was instant.
Closing the File Browser takes ~15 seconds whereas it formerly was instant.
My hard drive is only 10% full. This slowness developed today.
Have I come to a Knee In The Curve phenomenon? What to do?
Daniel B. Martin
Last edited by danielbmartin; 12-14-2013 at 01:24 PM.
Reason: Correct, clarify, and expand the symptom report
|
|
|
12-13-2013, 06:15 PM
|
#2
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Symptoms like that occur when there are hardware problems with a disk. Assuming that that folder resides in a partition on the disk sda, what is the output of
Code:
sudo smartctl -a /dev/sda
Please use code-tags to post that output.
|
|
1 members found this post helpful.
|
12-13-2013, 06:53 PM
|
#3
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
if you launch an edit session on one of those files without opening the file manager first, e.g. from command line with absolute path:
Code:
gedit /path/to/file.txt
does it also take too long?
it could be your filemanager is having problems with processing all those files, or just one of them. did you say 2500files in 1 (one) directory?
|
|
1 members found this post helpful.
|
12-14-2013, 12:35 PM
|
#4
|
Senior Member
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,895
Original Poster
|
Thank you, TobiSGD and and ondoho for your interest in this thread.
I am a recreational programmer, entirely self-taught in the Linux realm. Consequently there are great gaps in my knowledge. Much of what I know has been picked up by reading Linux Questions forums, hence the name LQfiles. I don't know enough to answer the questions directly but hope this narrative will be useful.
I have many small bash scripts with names of this form ...
/home/daniel/Desktop/LQfiles/dbm***.bin
... where *** is a numeric.
Most operate on an input file with a name of this form ...
/home/daniel/Desktop/LQfiles/dbm***inp.txt
... and generate an output file with a name of this form ...
/home/daniel/Desktop/LQfiles/dbm***out.txt
The majority of these files contain fewer than 50 lines.
The folder /home/daniel/Desktop/LQfiles contains 2,476 items, totalling 2.4 GB. It contains no other folders, only files.
gedit /path/to/file.txt opens an edit session instantly, same as it does from the file manager.
Saving the edited file works instantly unless I change the name by doing a Save As. In that case it takes ~10 seconds.
Is there some practical limit to the number of files which reside in any one folder? If need be, I could restructure LQfiles to contain only folders, with each folder containing a subset of the present-day LQfiles.
Daniel B. Martin
|
|
|
12-14-2013, 12:59 PM
|
#5
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by danielbmartin
I am a recreational programmer, entirely self-taught in the Linux realm.
|
so am i.
Quote:
gedit /path/to/file.txt opens an edit session instantly, same as it does from the file manager.
|
you said differently in your first post. which is it to be?
Quote:
Is there some practical limit to the number of files which reside in any one folder?
|
i don't know. there probably is.
Quote:
If need be, I could restructure LQfiles to contain only folders, with each folder containing a subset of the present-day LQfiles.
|
i think it would be wise to do so and see if that changes the problem.
it's a nice challenge to make a shell script for that ;-)
and while you're at it, maybe you find some corrupt files which are causing problems.
|
|
1 members found this post helpful.
|
12-14-2013, 01:26 PM
|
#6
|
Senior Member
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,895
Original Poster
|
Quote:
Originally Posted by ondoho
you said differently in your first post.
|
You are correct; I contradicted myself. The Original Post has been edited to correct, clarify, and expand the symptom report.
|
|
|
12-15-2013, 10:14 AM
|
#7
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
There should be only hard limits how many folders a file-system can handle (dependent on the filesystem in use), but not a "if you go across this number it will become slow" limit. I have never seen such behavior before and I have no clue what could cause it.
|
|
|
12-15-2013, 06:07 PM
|
#8
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by TobiSGD
There should be only hard limits how many folders a file-system can handle (dependent on the filesystem in use), but not a "if you go across this number it will become slow" limit. I have never seen such behavior before and I have no clue what could cause it.
|
i thought maybe the thumbnailer is eating up resources.
|
|
|
12-15-2013, 08:23 PM
|
#9
|
Senior Member
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,895
Original Poster
|
Quote:
Originally Posted by ondoho
i thought maybe the thumbnailer is eating up resources.
|
I always use List View so the thumbnailer overhead is not (or should not) be a factor.
Daniel B. Martin
|
|
|
12-15-2013, 08:26 PM
|
#10
|
Senior Member
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,895
Original Poster
|
I created seven subdirectories. They are:
LQ2 which contains all files with names starting with dbm2.
LQ3 which contains all files with names starting with dbm3.
LQ4 which contains all files with names starting with dbm4.
...
LQ8 which contains all files with names starting with dbm8.
LQfiles now contains those seven LQn folders and 329 files.
Launching a File Browser on LQfiles takes ~11 seconds.
I don't know if this should be considered a solution or a workaround.
Either way, the outcome is satisfactory so we can mark this thread SOLVED.
Daniel B. Martin
|
|
|
All times are GMT -5. The time now is 11:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|