<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 04/03/2013 11:25 AM, Max Lapshin
wrote:<br>
</div>
<blockquote
cite="mid:CAMxVRxCtCDk2=fRMESr6FZ+RBBsfx+F_H9EmHqh+VwNG8eR9JQ@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div dir="ltr">sendfile doesn't work for me, because I need to
postprocess data from file.
<div><br>
</div>
<div style="">thread pools can really help, because I can read
major_device from read_file_info and route all requests to
this pool id.</div>
<div style=""><br>
</div>
<div style="">and right now it seems that I need to launch
dozens of external workers that just read and reply with block
from opened file.</div>
</div>
</blockquote>
Yes, right, writers in separate processes doesn't help - you have to
isolate the reader threads for that device, my mind slipped there :)
You need to have either a new driver that reads the files or a
separate process if you're not to patch the efile_driver and
prim_file.erl...<br>
<br>
Cheers,<br>
/Patrik<br>
<br>
</body>
</html>