in reply to Re: Delay when write to large number of file
in thread best way to fast write to large number of files
Dear Corion, thanks for replay.
its good idea if we have low number of client.
The problem is we have more than 5M subscriber (with more than 2.7M active client), and we have Continuous input of logs (about 4~5 file every minute), with every log file has ~18K raw.
so its very rare to have client made more than 3 record in the same log file, which mean it make no much difference if sorting the data or not.
-- but it will be good idea if we add more than one log file together in that list @RECList.
-- now, another Question. how many raw we can add the array? or what is the limit size of array in perl?
also, I know that opreating system has some fault in this (windows 7 & windows server 2008) we relay wish to use linux but cannot :(
and I know the slowness are from open and close too many file, I try to find any other way to write to files other than this but couldn't find any (I'm beginner in perl ~ but I like it very much ^_^).
BR
Hosen
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Delay when write to large number of file
by Corion (Patriarch) on Jun 23, 2014 at 15:19 UTC | |
|
Re^3: Delay when write to large number of file
by wjw (Priest) on Jun 23, 2014 at 17:40 UTC | |
|
Re^3: Delay when write to large number of file
by Anonymous Monk on Jun 24, 2014 at 07:20 UTC | |
by Hosen1989 (Scribe) on Jun 24, 2014 at 10:35 UTC | |
by Anonymous Monk on Jun 24, 2014 at 10:39 UTC |