LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-25-2022, 01:31 AM   #16
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 19,277

Rep: Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543

for example ls by default sorts the filenames, so it must read all the entries of the directory before showing the content. ls -U may help on this. But probably better to use another tool to read a dir file by file.
Image processing must take much longer then fetching a filename (in general).
Without knowing actually what's going on extremely hard to catch the bottleneck. Probably it is in line 43.
 
Old 11-25-2022, 04:58 AM   #17
purveshp
LQ Newbie
 
Registered: Nov 2022
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks.

Any distributed filesystem or filesystem like btrfs would help?
 
Old 11-25-2022, 05:05 AM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 19,277

Rep: Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543Reputation: 6543
Quote:
Originally Posted by purveshp View Post
Thanks.

Any distributed filesystem or filesystem like btrfs would help?
without details hard to say anything. Try it. From my side using a distributed filesystem is not the right direction, but this is the correct answer:
https://www.reddit.com/r/Jokes/comme...et_a_dinosaur/
 
Old 11-25-2022, 11:37 AM   #19
elgrandeperro
Member
 
Registered: Apr 2021
Posts: 214
Blog Entries: 2

Rep: Reputation: Disabled
The stat of the directory is what is taking time, not the size of files. That is why hashing the path to reduce directory size is done. I've converted a filesystem to a database lookup to fix the problem also, databases are optimized for lookups. I'd say it will never work as designed.
 
Old 11-25-2022, 11:50 AM   #20
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 25,415

Rep: Reputation: 7576Reputation: 7576Reputation: 7576Reputation: 7576Reputation: 7576Reputation: 7576Reputation: 7576Reputation: 7576Reputation: 7576Reputation: 7576Reputation: 7576
Quote:
Originally Posted by purveshp View Post
Thanks.
Any distributed filesystem or filesystem like btrfs would help?
Again, as you've been told several times, you haven't given us any real details about what you're trying to do, how, or describe your actual goal. Saying "read small image files" tells us nothing. You hint at multiple clients (running what? Attached how), over a network (LAN? WAN? VPN? what?) to do 'manipulation' (what kind? Using what program?).

Without details and a clear question, there's nothing we can tell you that would be meaningful.
 
Old 11-25-2022, 12:29 PM   #21
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDo, tinycore, Q4OS,Manjaro
Posts: 4,628

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
Quote:
Originally Posted by purveshp View Post
Thanks.

Any distributed filesystem or filesystem like btrfs would help?
You have given us inadquate data to make any other than general comments. We need far more detail, and better detail, about your hardware and network situation, your processes, your data, files, and structures, and far more data about the processes that create or deliver these objects and about how and why you intend to process these objects. You have us shooting at goldfish, in a barrel, without lights, in the dark. Even if we his something, we will never know.

Can you give us enough information to actually work on?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Delete millions of files from a directory resuni Linux - Software 12 05-04-2016 03:31 PM
How were Linus Torvalds or Guido able to convince millions of people to contribute to a small university project? prahladyeri Programming 11 03-03-2016 12:06 PM
Deleting a Directory with millions of files and sub directories ramsforums Linux - Software 41 08-26-2015 07:34 PM
Creating a large tar ile form a sequence of small tar files and one files is missing jyunker Linux - Newbie 4 03-10-2015 03:56 PM
how do I copy a whoel folder form one directory to another form the command line? zwyrbla Linux - Newbie 8 08-24-2004 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:55 AM.

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