Elixir交互式Shell: 1. 运行时系统标记
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 threadsin 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 breakhandler, 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 portsNote 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 ofschedulers online (n2), maximum for bothnumbers is 1024
-SP p1:p2 specify schedulers (p1) and schedulers online (p2)as percentages of logical processors configured and logicalprocessors available, respectively
-t size set the maximum number of atoms the emulator can handlevalid 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 kilobytesvalid range is [1-2097151]
-zdntgc time set delayed node table gc in secondsvalid 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 +.
Elixir交互式Shell: 1. 运行时系统标记相关推荐
- Elixir交互式Shell: 5. 配置IEx
Elixir交互式Shell: 1. 运行时系统标记 Elixir交互式Shell: 2. 常用命令 Elixir交互式Shell: 3. 创建本地和远程Shell Elixir交互式Shell: 4 ...
- erlang虚拟机精要(1)-运行时系统简介
Erlang运行时系统应用程序ERTS包含运行Erlang系统所需的功能. 请注意 默认情况下,ERTS只保证与来自同一版本的其他Erlang/OTP组件兼容. Erlang通信 Erlang中的通信 ...
- 科维PLC运行时系统ProConOS embedded CLR 2.2 特定应用
ProConOS embedded CLR是新型的开放式标准化PLC运行时系统,符合IEC 61131标准,可执行不同的自动化任务(PLC.PAC.运动控制.CNC.机器人和传感器). 通过采用国际标 ...
- Java 内存管理、JVM 工作原理与 Java 运行时系统
Java 虚拟机规范中说明:所有的对象实例(all class instances)以及数组都要在堆上分配: the heap is the runtime data area from which ...
- 什么是引发?Java运行时系统引发的异常如何处理?
到目前为止,你只是获取了被Java运行时系统引发的异常.然而,程序可以用throw语句引发明确的异常.Throw语句的通常形式如下: throw ThrowableInstance; 这里,Throw ...
- VS2008 Win7下安装 运行时系统必备失败 error1603
说一下我的安装和解决过程吧 1.在虚拟机中安装win7 旗舰版 32位,因为专业关系我安装了arcgis相关软件,后面紧接着安装vs2008. 2.vs2008安装过程中,提示检测到.netframe ...
- THRUST:一个开源的、面向异构系统的并行编程语言:编程模型主要包括:数据并行性、任务并行性、内存管理、内存访问控制、原子操作、同步机制、错误处理机制、混合编程模型、运行时系统等
作者:禅与计算机程序设计艺术 1.简介 https://github.com/NVIDIA/thrust 2021年8月,当代科技巨头Facebook宣布其开发了名为THRUST的高性能计算语言,可用 ...
- 易语言服务器停止运行程序,易语言防止程序运行时 系统自动关闭显示器
如:电脑设置了空闭一分钟后,显示器自动关闭. 本例程,可以设置运行自己的程序时,禁止系统:自动关闭显示器,与恢复自动关闭显示功能. 部分代码:.版本 2 .程序集 窗口程序集_启动窗口 .程序集变量 ...
- go 获取内核个数_图解Go运行时调度器
多goroutines形式的Go并发是编写现代并发软件的一种非常方便的方法,但是您的Go程序是如何高效地运行这些goroutines的呢? 在这篇文章中,我们将深入Go运行时底层,从设计角度了解Go运 ...
最新文章
- 自定义notebook扩展插件_Jupyter notebook安装扩展插件
- 在2019年比较云计算服务时需要问的6个问题
- 判断小数是否相等_五年级上册数学综合练习题(填空、判断、选择、文字题),覆盖全册知识点!...
- Mac上的抓包工具Charles
- Hyperic HQ监控IBM WebSphere MQ
- python︱flashtext高效关键词查找与替换
- 网络安全实验---防火墙实验
- 微信中调用扫一扫最简便的方法 5行代码实现H5扫一扫 HTML5扫二维码最简便的办法
- 2018 ISCC re\web\misc WP
- vue2.0分页插件官方_Vue 2的最佳和完整分页插件
- 概率论-分布函数(高斯分布、复高斯分布、瑞丽分布、Nakagami-m分布、均匀分布、卡方分布)
- mysql表文件与结构_MySQL文件结构、逻辑架构及sql执行流程分析
- 408计算机网络04-HTTP 长连接短连接使用场景是什么
- HDU 6194 String String String (后缀数组+线段树, 2017 ACM/ICPC Asia Regional Shenyang Online)
- 罗克韦尔自动化通过收购ASEM加强控制和可视化产品组合
- redis 迁移工具 redis-port 从阿里云迁移到aws
- 每日一课 | range()函数用法
- 小白如何启动Vue项目?
- [解题报告]11942 - Lumberjack Sequencing
- python数据分析可视化实例-Python数据分析与可视化从入门到精通