Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Im I forking properly ?

by NetWallah (Canon)
on Apr 15, 2016 at 04:36 UTC ( [id://1160492]=note: print w/replies, xml ) Need Help??


in reply to Im I forking properly ?

You have encountered a fairly common design pattern, where you have a relatively quick "work supplier" in "tail"in the file, and a relatively slow "consumer" process, which does the snmpget.

The usual solution to this is to run multiple, parallel "consumer" processes, such that, on the average, consumption rate matches generation rate.

One solution to this uses threads to run worker processes, and queues to communicate with them.

This site contains many such queries, and implementations of this pattern, this one being the most recent. Please review the techniques, and I recommend following BrowserUk's brilliant responses.

        This is not an optical illusion, it just looks like one.

Replies are listed 'Best First'.
Re^2: Im I forking properly ?
by leostereo (Beadle) on Apr 18, 2016 at 14:47 UTC

    Thanks!! I will read those pappers as you suggested

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1160492]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-05-29 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found