Elixir交互式Shell: 1. 运行时系统标记

news/2023/12/8 22:27:27

Elixir交互式Shell: 1. 运行时系统标记
Elixir交互式Shell: 2. 常用命令
Elixir交互式Shell: 3. 创建本地和远程Shell
Elixir交互式Shell: 4. 处理文件和脚本
Elixir交互式Shell: 5. 配置IEx

这是IEx系列五部分中的第一部分, 在这一部分中, 我们将说明如何设置Erlang系统的运行时开关标记

设置Erlang使用的调度器个数

➜  iex --erl "+S 2:2"
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:2:2] [async-threads:10] [kernel-poll:false]

Interactive Elixir (1.2.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>

两个调度器可用, 仅设置一个在线(Online)

➜  iex --erl "+S 2:1"
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:2:1] [async-threads:10] [kernel-poll:false]

Interactive Elixir (1.2.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>

远程Shell

➜  iex --name node1@example.com --remsh node2@example.com

打开内核Poll

➜  iex --erl "+S 2:1 +K true"
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:2:1] [async-threads:10] [kernel-poll:true]

Interactive Elixir (1.2.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>

显示参数列表:

➜ erl +

/usr/local/lib/erlang/erts-7.1/bin/beam.smp unknown flag -
Usage: beam.smp [flags] [ -- [init_args] ]
The flags are:

-a size        suggested stack size in kilo words for threads
               in the async-thread pool, valid range is [16-8192]
-A number      set number of threads in async thread pool,
               valid range is [0-1024]
-B[c|d|i]      c to have Ctrl-c interrupt the Erlang shell,
               d (or no extra option) to disable the break
               handler, i to ignore break signals
-c bool        enable or disable time correction
-C mode        set time warp mode; valid modes are:
               no_time_warp|single_time_warp|multi_time_warp
-d             don't write a crash dump for internally detected errors
               (halt(String) will still produce a crash dump)
-fn[u|a|l]     Control how filenames are interpreted
-hms size      set minimum heap size in words (default 233)
-hmbs size     set minimum binary virtual heap size in words (default 32768)
-hpds size     initial process dictionary size (default 10)
-K boolean     enable or disable kernel poll
-n[s|a|d]      Control behavior of signals to ports
               Note that this flag is deprecated!
-M<X> <Y>      memory allocator switches,
               see the erts_alloc(3) documentation for more info.
-pc <set>      Control what characters are considered printable (default latin1)
-P number      set maximum number of processes on this node,
               valid range is [1024-134217727]
-Q number      set maximum number of ports on this node,
               valid range is [1024-134217727]
-R number      set compatibility release number,
               valid range [16-18]
-r             force ets memory block to be moved on realloc
-rg amount     set reader groups limit
-sbt type      set scheduler bind type, valid types are:
-stbt type     u|ns|ts|ps|s|nnts|nnps|tnnps|db
-sbwt val      set scheduler busy wait threshold, valid values are:
               none|very_short|short|medium|long|very_long.
-scl bool      enable/disable compaction of scheduler load,
               see the erl(1) documentation for more info.
-sct cput      set cpu topology,
               see the erl(1) documentation for more info.
-secio bool    enable/disable eager check I/O scheduling,
               see the erl(1) documentation for more info.
-sub bool      enable/disable scheduler utilization balancing,
               see the erl(1) documentation for more info.
-sws val       set scheduler wakeup strategy, valid values are:
               default|legacy.
-swct val      set scheduler wake cleanup threshold, valid values are:
               very_lazy|lazy|medium|eager|very_eager.
-swt val       set scheduler wakeup threshold, valid values are:
               very_low|low|medium|high|very_high.
-sss size      suggested stack size in kilo words for scheduler threads,
               valid range is [4-8192]
-spp Bool      set port parallelism scheduling hint
-S n1:n2       set number of schedulers (n1), and number of
               schedulers online (n2), maximum for both
               numbers is 1024
-SP p1:p2      specify schedulers (p1) and schedulers online (p2)
               as percentages of logical processors configured and logical
               processors available, respectively
-t size        set the maximum number of atoms the emulator can handle
               valid range is [8192-0]
-T number      set modified timing level, valid range is [0-9]
-V             print Erlang version
-v             turn on chatty mode (GCs will be reported etc)
-W<i|w|e>      set error logger warnings mapping,
               see error_logger documentation for details
-zdbbl size    set the distribution buffer busy limit in kilobytes
               valid range is [1-2097151]
-zdntgc time   set delayed node table gc in seconds
               valid values are infinity or intergers in the range [0-100000000]

Note that if the emulator is started with erlexec (typically
from the erl script), these flags should be specified with +.

http://www.niftyadmin.cn/n/3783197.html

相关文章

NDK build编译的解析

从ndk-build命令开始解析&#xff1a;1,ndk-build.sh:编译总脚本 a,获取make工具&#xff0c;找到makefile文件; b,执行make -f makefile(or othername:build-local.mk);2,build-local.mk:启动的makefile a,检查NDK_ROOT的合法性; b,初始化环境init.mk&#xff1b…

上海某软件公司电话面试分享

前段时间在猎聘网上面投了几家公司的简历&#xff0c;结果没过多久就有一家公司叫我准备电话面试了&#xff0c;其中一家就是XX软件公司的面试了。今天下午从3点讲到4点。说句实话&#xff0c;今天长沙这边是下雨天&#xff0c;有点冷&#xff0c;为了找一个方便的地方去说话&a…

android的native开发的重要性

1概要&#xff08;android的native开发的重要性&#xff0c;那些方面会用到native开发&#xff1b; 提高某些关键模块的效率; 使用某个以C/C等Native语言编写的程序库; 硬件操作时候,在与别的公司/团队合作的时候&#xff0c;如果别人提供的是c/c实现的功能&#xff1b; 由…

PHP获取POST数据的3种方法

为什么80%的码农都做不了架构师&#xff1f;>>> 方法1、最常见的方法是&#xff1a;$_POST[fieldname]; 说明&#xff1a;只能接收Content-Type: application/x-www-form-urlencoded提交的数据 解释&#xff1a;也就是表单POST过来的数据 方法2、file_get_conten…

cocos2dx3.0 build_native.sh 需要这些环境变量

#android SDK 位置 export ANDROID_SDK_ROOT/Applications/adt-bundle-mac-x86_64/sdk #android NDK 位置 export ANDROID_NDK_ROOT/opt/android/android-ndk-r9 #android NSD paltforms位置&#xff0c;内部应有android-* export NDK_PLATFORMS_ROOT/opt/android/android-ndk…

cocos2d-x发生undefined reference to `XX'错误

eclipse cocos2dx项目&#xff0c;出现错误 E:/Acocos2d-x/cocos2d-1.0.1-x-0.11.0/MyBilliard/android/jni/../../Classes/HelloWorldScene.cpp:27: undefined reference to GameLayer::GameLayer() E:/Acocos2d-x/cocos2d-1.0.1-x-0.11.0/MyBilliard/android/jni/../../Cla…

OpenNebula 2.2的特性

以下这篇文章由OpenNebula 2.2 Features翻译而来。 OpenNebula是一款为云计算而打造的开源工具箱。它允许你与Xen&#xff0c;KVM或VMware ESX一起建立和管理私有云&#xff0c;同时还提供Deltacloud适配器与Amazon EC2相配合来管理混合云。除了像Amazon一样的商业云服务提供商…

Hackborn的吐槽和Munn的剖析: Android graphics低性能背后的真像

Google上有意思的讨论从未间断&#xff0c;几乎已是Google的标志性特色了。最近两天&#xff0c;移动领域的爱好者都被Dianne Hackborn的一则吐槽所吸引。吐槽要火&#xff0c;两大因素不可缺少&#xff0c;一是该话题乃众人关注&#xff0c;却无统一意见。二是吐槽中有大料或者…

mysql 游标的使用方法

BEGIN /*计算用户提成总金额*/ declare amountPrice,pays,rates,goodsPrice DECIMAL(10,2) DEFAULT 0; DECLARE flag int,getUserId; #if(userlevel1) thenSELECT member_id into getUserId from 33hao_member where openidopen_iddeclare cur cursor for select commissio…

FlexPaper参数说明

为什么80%的码农都做不了架构师&#xff1f;>>> SwfFile(String)&#xff1a;需要使用FlexPaper打开的文档 Scale(Number)&#xff1a;初始化缩放比例&#xff0c;参数值应该是大于零的整数&#xff08;1100%&#xff09; ZoomTransition(String)&#xff1a;FlexP…

iPhone: libpng error: CgBI: unknown critical chunk

If you get this error when trying your app on the device, you have PNG compression on in Xcode, in Xcode 4 goto “Build Settings” search for PNG in the search box and turn off PNG compression…

sha2 替换sha1 时间表

由于sha1签名算法进入淘汰阶段&#xff0c;逐渐弃用中&#xff0c;sha1升级为sha2是大势所趋。微软已经正式发布sha1弃用策略&#xff1a; http://blogs.technet.com/b/pki/archive/2013/11/12/sha1-deprecation-policy.aspx谷歌没多久也发布sha1的日落计划&#xff1a; http:/…

【oracle】关于日志产生量的计算

根据每日归档的生成量&#xff0c;可以反过来估计每日的数据库活动性及周期性&#xff0c;并决定空间分配的问题&#xff01; 1.计算归档日志的生产量&#xff1a; select name,completion_time,BLOCKS * BLOCK_SIZE/1024/1024 MB from v$archived_log where rownum < 11 …

【6】python代码缩进和循环语句2

我们接着讲for函数。 range&#xff08;&#xff09;函数和len&#xff08;&#xff09;函数常常一起用于字符串索引&#xff0c;这里我们要显示每一个的元素及其索引值。 #小插曲&#xff0c;在cmd中&#xff0c;清除屏幕的方法是输入cls&#xff0c;即 clean screen。 让我们…

[cocos2d-x]File文件的IO读写处理

为了保存自定义数据文件&#xff0c;需要保存文件和读取文件&#xff0c;也就是File的IO处理&#xff1b; 针对cocos2d-x我们可以通过CCFileUtils::sharedFileUtils()->getWriteablePath()获取到可读写的文件目录&#xff0c;其实是Caches目录。 关于file的操作&#xff0c;…

股市投资策略总结(转)

个人股市投资策略总结第一篇 选股策略&#xff1a; 1、成交量极度萎缩 2、机构资金线出现底部反弹&#xff0c;且呈现上扬趋势 3、机构资金线在坐标0.0以下&#xff0c;或者逐渐上扬接近横坐标。 4、机构资金线呈现底部横盘趋势&#xff0c;可以适量买进。 追涨策略&#xff1a…
最新文章