If I can make a time to work on it, I want to implement some other ideas such as Proc#call optimization.
而另外一些非常重要的优化将会包括在内。如果我能够有时间来做这件事的话,我倒是希望能够实现一些其他的想法,例如Proc#call优化。
We then loop, rescanning the SCSI bus (by echoing a command to a special file in the /proc pseudo-filesystem and calling devfsd) until the root device (/dev/sda1 in my case) is present.
然后我们进行循环,重新扫描SCSI总线(通过将命令回送到 /procpseudo-filesystem中的特殊文件,并调用devfsd ),直到出现根设备(我的例子中为 /dev/sda1)。
To check for compatibility, run the command grep vmx /proc/cpuinfo (on AMD, run the command grep svm /proc/cpuinfo).
为了检查兼容性,请运行命令grepvmx /proc/cpuinfo(对于 AMD,运行命令 grep svm /proc/cpuinfo)。
In Listing 24, the procedure proc is coded to return an OUT parameter value, which is denoted by the parameter marker (?), and was not coded to accept an input value.
在清单24中,过程被编码为返回一个OUT参数值,使用参数标记(?)表示,并且不能接受输入值。
The /proc file system code (for /dev/lguest) is also implemented in this module, which implements the user-space interfaces to the kernel and drivers, including hypercalls.
这个模块还实现 /proc文件系统代码(针对 /dev/lguest),该代码实现到内核和驱动器(包括虚拟化调用)的用户空间接口。
A short article like this can't detail all the uses of /proc, but it does demonstrate a couple of uses to give you an idea of how powerful /proc can be.
尽管像本文这样短小的一篇文章无法详细介绍 /proc 的所有用法,但是它依然对这两种用法进行了展示,从而可以让我们体会一下 /proc是多么强大。
The proc filesystem has been modified to report only the original thread, rather than all threads.
修改了proc 文件系统,不再报告所有的线程而只是报告原始的线程。
The rsyslogd daemon, through its configuration file in /etc/rsyslog.conf), understands the /proc file system kmsg interface and uses it to extract kernel logging messages.
rsyslogd守护程序通过它的配置文件 /etc/rsyslog.conf 来理解 /proc 文件系统的kmsg接口,并使用这些接口获取内核日志消息。
This function accepts a file name, a set of permissions, and a location in the /proc filesystem in which the file is to reside.
这个函数可以接收一个文件名、一组权限和这个文件在 /proc 文件系统中出现的位置。
You can read data from a /proc entry (from the kernel to the user) by using the read_proc function. This function has the following prototype
我们可以使用 read_proc函数从一个 /proc项中读取数据(从内核空间到用户空间)。
proc filesystem support needs to be used to determine such parameters.
要确定此类参数,需要利用 /proc文件系统的支持。
You'll find a /proc interface to manage the process hierarchies, giving you full control over how groups are formed.
您会发现 /proc接口用于管理进程层次结构,让您对组的形成方式有完全的控制。
P is the pointer to the proc structure of the calling process.
p是一个指向调用进程的proc结构的指针。
set_trace_func allows to set Ruby callback function or Proc, which is invoked every time a line of Ruby code is executed.
set_trace_func允许设置Ruby回调函数或者Proc,它们在每一行Ruby代码执行的时候都会被调用一次。
When executed, the user-space program does an ioctl on pre-defined proc-entries, which results in a call to the kernel module.
这个用户空间程序在预定义的proc -entries上执行ioctl,这会导致对内核模块的调用。
proc/sys/net/ipv4/tcp_low_latency "0" Allows the TCP/IP stack to give deference to low latency over higher throughput; should be disabled.
proc/sys/net/ipv4/tcp_low_latency "0"允许TCP/IP栈适应在高吞吐量情况下低延时的情况;这个选项应该禁用。
For the sake of completeness, here is a Proc: : ProcessTable example that shows how to use the kill Perl function.
为了完整性缘故,这里是一个演示了如何使用killperl函数的Proc:ProcessTable示例。
While not directly related to using lsof, a brief diversion to the /proc directory is in order.
尽管与使用lsof 没有什么直接的关系,但对 /proc目录进行简要的介绍是有必要的。
Use /proc/PID/task to count active threads
使用 /proc/PID/task计算活动线程数
P is a pointer to the proc structure of the process that makes the socket call.
p是一个指针,指向进行socket调用的进程的proc结构。
Allow set to specify that a proc value is: per_thread.
允许集合将proc值指定为:per_thread。
The file /proc/kmsg implements a small number of file operations that equate to internal do_syslog operations.
文件 /proc/kmsg 实现了少数等同于内部 do_syslog的文件操作。
To find out the allocation of the Linux shared memory, you can look at shmmax, shmmin and shmall under the /proc/sys/kernel directory.
要获得Linux共享内存的分配,您可以查看 /proc/sys/kernel目录下的shmmax、shmmin和shmall。
Inspiration can now proc from the Penance spell, in addition to all the old spells that could proc Inspiration.
灵感现在可以由赎罪法术产生,以前的旧法术同样可以产生灵感。
Rune of Razorice: Now stacks 5 stacks of 2% Frost Vulnerability instead of 10 stacks of 1% Frost Vulnerability. Proc chance changed to 100%.
冰剃符文:冰剃符文现在提供5层每层2%的冰霜易伤效果,之前是10层每层1%,触发几率为100%。
How to pass parameter by reference to the proc?
如何通过引用传递参数的过程?
Judgement of Wisdom: mana gained reduced to 1% of maximum mana and proc frequency cut by 50%.
智慧审判:魔法恢复降低到1%最大魔法上限,同时触发几率减低到50%。
A. We have been adjusting a lot of procs so far and this one is on our radar. Tanks still manage to avoid hits a lot, which makes the proc less useful.
我们已经调整了很多触发效果,这个已经在我们的计划中。坦克就是要尽量避免被击中的,使得这个触发效果用处降低了。
Master Tactician (Survival) - Chance to proc increased to 10%, up from 6%.
战术大师(生存系)触发机率从6%上升到10%。
A. We have been changing a lot of procs so far and this one is on our radar. Tanks still manage to avoid hits a lot, which makes the proc less useful.
我们已经调整了很多触发效果,这个已经在我们的计划中。坦克就是要尽量避免被击中的,使得这个触发效果用处降低了。
应用推荐