Q about Coro file::find

Aleksandar Lazic al-anyevent at none.at
Tue Jan 31 19:49:49 CET 2012


On 31-01-2012 18:40, Zsbán Ambrus wrote:
> On 1/31/12, Aleksandar Lazic <al-anyevent at none.at> wrote:
>> I have a NFS-Share and I want to parallel the
>>
>> du -sm /NFS-SHARE
>
> I don't really understand your goal.  You want to do what things in
> parallel and why?

The

du -sm /NFS-SHARE/dir1

needs hours to examine the size of dir1, due to the fact that it is 
~95GB big and have a lot of files and directories.

I want to use more then one process which goes sequentially thru the 
directories.

For example:

1 thread/process/coro goes thru glob(/NFS-SHARE/dir1/[Aa]*)
1 thread/process/coro goes thru glob(/NFS-SHARE/dir1/[Bb]*)
...
up to n thread/process/coro.

At the end summarize all collected Data.

>> I have used the File::Find like the program at the end.
>
> tl;dr

ok.

Aleks



More information about the anyevent mailing list