Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-25-2009, 03:39 PM   #1
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
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
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 386Reputation: 386Reputation: 386Reputation: 386
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
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.


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration