LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Maximum number of move/copy operations? (https://www.linuxquestions.org/questions/linux-newbie-8/maximum-number-of-move-copy-operations-750198/)

jokeshopbeard 08-25-2009 03:39 PM

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!

FragInHell 08-25-2009 06:28 PM

you might need to take a look at the max number of files allowed open per process see /etc/security/limits.conf

i92guboj 08-25-2009 06:37 PM

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.

jokeshopbeard 08-26-2009 10:48 AM

Cheers for the help guys, I think that's exactly what I needed to know.


All times are GMT -5. The time now is 01:13 AM.