LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-25-2009, 03:39 PM   #1
jokeshopbeard
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Maximum number of move/copy operations?


Hi Guys,

Have been experiencing an issue whereby an application (Pro IV based) we are using is trying to move in the region of 3500 files at once - this simply results in the app falling over.

When we clear down the direcory to say 500 files however, there are no issues.

Is there a maximum number of move or copy operations or files that can be moved at once?

If so, is there any way to lift this limit?

Thanks in advance for any help!
 
Old 08-25-2009, 06:28 PM   #2
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
you might need to take a look at the max number of files allowed open per process see /etc/security/limits.conf
 
Old 08-25-2009, 06:37 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
There can be two things (that I can think of right now): the limits that FragInHell speaks of above, and the command line length. Of course, I can't confirm anything since I can't see the source code of the application.

In the first case, it would be a sign of really really poor programming practices: you don't need to have opened the 3500 files simultaneously to copy them, that doesn't make any sense and is an utterly stupid waste of resources. I really don't think that anyone with a couple of neurons can program like that.

In the second case, it's a matter of passing the correct amount of parameters. However, depending on the application it can also be a sign of bad programming practices. If it's a command line application, you should be passing a correct amount of parameters, that doesn't exceed the max length of the parameter list. xargs can be used for that, or it could be done with a loop. In the case of a GUI frontend, then the problem is probably in the GUI, which is interfacing with mv or whatever command like tools to move the files, and pass too much arguments to them.

In any case, and without more info on what program are you using and its true nature, that's all I can say.
 
Old 08-26-2009, 10:48 AM   #4
jokeshopbeard
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Cheers for the help guys, I think that's exactly what I needed to know.
 
  


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
Maximum number of clients svetlio0o Slackware 4 12-19-2008 09:30 AM
Maximum number of mounts kutty_prasad Linux - Newbie 1 01-16-2007 07:44 AM
Maximum number of fonts Thetargos Linux - Software 2 02-04-2006 08:01 PM
maximum number of HDs gr00ve Linux - Hardware 2 09-05-2004 06:43 AM
Copy/Paste operations Rex_chaos Linux - General 1 11-03-2001 06:41 AM

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

All times are GMT -5. The time now is 06:30 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