2012-05-13 14 views
7

क्या वैश्विक स्तर पर पंजीकरण की जा रही प्रक्रियाओं की संख्या की एक सीमा है? या यह केवल स्मृति/अधिकतम संख्या परमाणुओं द्वारा सीमित है?वैश्विक स्तर पर पंजीकृत प्रक्रियाओं की अधिकतम संख्या

उबंटू 12.04 और एरलांग आर 15 बी 01।

उत्तर

11

अच्छा सवाल! यदि आप निम्नलिखित में ध्यान देते हैं तो मैं परमाणुओं की संख्या पर शर्त लगाऊंगा। जब से तुम की संख्या को बदल सकते हैं

+P Number 
Sets the maximum number of concurrent processes for this system. Number must be in the range 16..134217727. Default is 32768. 

:

Processes 
The maximum number of simultaneously alive Erlang processes is by default 32768. This limit can be raised up to at most 268435456 processes at startup (see documentation of the system flag +P in the erl(1) documentation). The maximum limit of 268435456 processes will at least on a 32-bit architecture be impossible to reach due to memory shortage. 

Distributed nodes 
Known nodes 
A remote node Y has to be known to node X if there exist any pids, ports, references, or funs (Erlang data types) from Y on X, or if X and Y are connected. The maximum number of remote nodes simultaneously/ever known to a node is limited by the maximum number of atoms available for node names. All data concerning remote nodes, except for the node name atom, are garbage-collected. 

इसके अलावा, erl manual section झंडा आप अपने नोड में प्रक्रियाओं की संख्या को बदलने के लिए उपयोग कर सकते हैं वर्णन करता है: Efficiency Guide प्रणाली सीमा पर एक अनुभाग है प्रति नोड समवर्ती प्रक्रियाएं, लेकिन आप परमाणु परमाणुओं की संख्या को परिवर्तित नहीं कर सकते हैं, और प्रक्रिया नाम परमाणु हैं जो प्रतिकृति प्रति नोड में प्रतिलिपि बनाई गई हैं, जो विश्व स्तर पर पंजीकृत प्रक्रियाओं की कुल अनुमत संख्या होनी चाहिए।

आशा है कि यह मदद करता है :)

संपादित: असल में, पता चला है कि आप की अनुमति दी परमाणुओं की संख्या :)

Atoms 
By default, the maximum number of atoms is 1048576. This limit can be raised or lowered using the +t option. 

+t size 
Set the maximum number of atoms the VM can handle. Default is 1048576. 
+0

धन्यवाद बदल सकते हैं, तो फिर कोई सीमा नहीं है। : डी। –

संबंधित मुद्दे