Unix/Linux Go Back    


UNIX for Beginners Questions & Answers If you're not sure where to post a Unix or Linux question, post it here. All unix and Linux beginners welcome in this forum!

Finding largest files takes too long

UNIX for Beginners Questions & Answers


Reply    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 1 Week Ago   -   Original Discussion by alexcol
alexcol's Unix or Linux Image
alexcol alexcol is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 15 June 2018, 11:44 AM EDT
Location: Bogota - Colombia - South America
Posts: 106
Thanks: 4
Thanked 1 Time in 1 Post
This is the output of 3 subdirectores of Filesysyem /SCEL/logs1



Code:
SCEL /SCEL/logs1 #ls -ld xpbatch  
drwxrwsrwx   3 oracle   explotacion 86179840 Jun 12 09:47 xpbatch
SCEL /SCEL/logs1 #ls -ld xpfactur
drwxrwxrwx   9 oracle   explotacion 1327104 Jun 12 09:45 xpfactur
SCEL /SCEL/logs1 #ls -ld xpconpag
drwxrwxrwx   2 xpconpag explotacion 2596864 Jun 12 09:00 xpconpag
SCEL /SCEL/logs1 #

I appreciate your help once again in advanced

---------- Post updated at 10:16 AM ---------- Previous update was at 09:53 AM ----------

Thank you all of yout for your support:


This is the output of 3 subfolders for Filesystem /SCEL/logs1



Code:
SCEL /SCEL/logs1 #ls -ld xpbatch  
drwxrwsrwx   3 oracle   explotacion 86179840 Jun 12 09:47 xpbatch
SCEL /SCEL/logs1 #ls -ld xpfactur
drwxrwxrwx   9 oracle   explotacion 1327104 Jun 12 09:45 xpfactur
SCEL /SCEL/logs1 #ls -ld xpconpag
drwxrwxrwx   2 xpconpag explotacion 2596864 Jun 12 09:00 xpconpag

---------- Post updated at 07:33 PM ---------- Previous update was at 10:16 AM ----------

This is what I posted, thanks again for your help



Code:
SCEL /SCEL/logs1 #ls -ld xpbatch  
drwxrwsrwx   3 oracle   explotacion 86179840 Jun 12 09:47 xpbatch
SCEL /SCEL/logs1 #ls -ld xpfactur
drwxrwxrwx   9 oracle   explotacion 1327104 Jun 12 09:45 xpfactur
SCEL /SCEL/logs1 #ls -ld xpconpag
drwxrwxrwx   2 xpconpag explotacion 2596864 Jun 12 09:00 xpconpag


Last edited by rbatte1; 1 Week Ago at 06:13 AM.. Reason: Spelling
Sponsored Links
    #9  
Old Unix and Linux 1 Week Ago   -   Original Discussion by alexcol
rbatte1's Unix or Linux Image
rbatte1 rbatte1 is offline Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 22 June 2018, 12:31 PM EDT
Location: Lancashire, UK
Posts: 3,562
Thanks: 1,571
Thanked 701 Times in 628 Posts
Can you sign on to the server at address 10.80.1.83 ? If you can, running your code there will be significantly faster that running over the network. This will be not just the searching, but the actual compression too. If you compress over the network, then you have to read the file across the network to your local memory, compress it and then write the resultant file back across the network to the server disk.

It really could be a massive difference in performance.


Robin
Sponsored Links
    #10  
Old Unix and Linux 1 Week Ago   -   Original Discussion by alexcol
MadeInGermany's Unix or Linux Image
MadeInGermany MadeInGermany is offline Forum Staff  
Moderator
 
Join Date: May 2012
Last Activity: 22 June 2018, 6:48 PM EDT
Location: Simplicity
Posts: 4,124
Thanks: 359
Thanked 1,403 Times in 1,260 Posts
If your bottleneck is the many fork()s then it helps to replace


Code:
-exec ls -ld {} \;

with


Code:
-exec ls -ld {} +

The + bundles the arguments and forks/execs few ls with the maximum number of arguments.
The Following User Says Thank You to MadeInGermany For This Useful Post:
alexcol (1 Week Ago)
    #11  
Old Unix and Linux 1 Week Ago   -   Original Discussion by alexcol
alexcol's Unix or Linux Image
alexcol alexcol is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 15 June 2018, 11:44 AM EDT
Location: Bogota - Colombia - South America
Posts: 106
Thanks: 4
Thanked 1 Time in 1 Post
Thanks again all of you for your help. It was useful for me
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find command takes long mohtashims Shell Programming and Scripting 5 07-12-2015 02:02 PM
sort takes a long time voolek Shell Programming and Scripting 12 02-09-2011 07:30 AM
finding largest files (not directories)? user19190989 UNIX for Dummies Questions & Answers 2 10-17-2008 12:21 AM
Killing a process that takes too long WeezelDs Shell Programming and Scripting 3 04-10-2006 03:33 PM
Finding out how long a command takes to run cfoxwell UNIX for Dummies Questions & Answers 3 11-22-2001 12:50 AM



All times are GMT -4. The time now is 04:07 PM.