Erlang模拟器信息语句是什么意思? [英] What do the Erlang emulator info statements mean?

查看:170
本文介绍了Erlang模拟器信息语句是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动我的Erlang模拟器时,第一位有一堆信息性的东西。 (稍微重新格式化)

When I start up my Erlang emulator, there the first bit has a bunch of informational things. (Slightly reformatted for effect.)

manoa:~ stu$ erl
Erlang (BEAM) emulator version 5.6.5 
[source] [smp:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.6.5 (abort with ^G)
1> 

有些可以猜到,可能是准确的,但有些意味着这里是魔术 。

Some of it I can guess at, probably accurate, but some of it means 'here be magic'.


  • Erlang(BEAM)模拟器版本5.6.5 :当然

  • [source] :模拟器是从源代码编译的?

  • [smp:2] :检测到可用的两个CPU内核

  • [async-threads:0] 当前正在运行的作业

  • [hipe] :?

  • [kernel-poll:false] :?

  • Erlang (BEAM) emulator version 5.6.5: the version, of course
  • [source]: the emulator was compiled from source?
  • [smp:2]: two CPU cores detected and available
  • [async-threads:0]: currently running jobs?
  • [hipe]: ?
  • [kernel-poll:false]: ?

也想知道是否有其他可能弹出不同配置,构建或启动参数的 [foo] 项目。

I also wonder if there are other [foo] items that may pop up with different configurations, builds or start up parameters.

那么,Erlang模拟器信息语句是什么意思?

So, what do the Erlang emulator info statements mean?

推荐答案

[async-threads:0]



可用于要加载的驱动程序使用的异步线程池的大小。这允许阻止系统调用在来自波束vm的单独的内核线程中执行。使用命令开关 + AN 来调整池的大小。

支持erlang源和字节码的本地编译。倾向于主要用于数字处理代码。对于字节码解释器,IO绑定的代码做得很好。

Support for native compilation of erlang source and bytecode. Tends to mostly be useful for number crunching code. IO-bound code do fine on the bytecode interpreter.

旧的选择(2)和轮询(2)系统呼叫接收一些文件描述符准备好解除写入或读取的通知。它们不能很好地扩展到大量的打开的文件描述符。现代操作系统有备用接口,linux有epoll,freebsd有kqueue。启用命令开关 + K true

There is the old select(2) and poll(2) system calls for receiving notification that some file descriptor is ready for unblocking writing or reading. They do not scale well to high number of open file descriptors. Modern operatingsystems have alternative interfaces, linux has epoll, freebsd has kqueue. Enable with command switch +K true

这篇关于Erlang模拟器信息语句是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆