diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-21 18:46:46 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-21 18:46:46 +0000 |
commit | dfe56d36624b9da86121a40469d487099d9818e9 (patch) | |
tree | c32c167300acd1e1d3063532b58f6c2bd0bbf106 | |
parent | 0fa75e813ecf0f5f3dd01f89aa76d0e25ab4fcd4 (diff) | |
download | ruby-dfe56d36624b9da86121a40469d487099d9818e9.tar.gz |
* ext/etc/etc.c (etc_nprocessors_affin): minor spell fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/etc/etc.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Wed Oct 22 03:37:00 2014 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * ext/etc/etc.c (etc_nprocessors_affin): minor spell fix. + Wed Oct 22 03:33:58 2014 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * ext/etc/etc.c (etc_nprocessors_affin): optimize memory usege a diff --git a/ext/etc/etc.c b/ext/etc/etc.c index 58c00b0161..b25cb7b8e0 100644 --- a/ext/etc/etc.c +++ b/ext/etc/etc.c @@ -928,11 +928,11 @@ etc_nprocessors_affin(void) * The precious way is to use /sys/devices/system/cpu/online. But there are * two problems, * - Costly calculation - * It is minor issue, but possibly kill the benefit of parallel processing. + * It is a minor issue, but possibly kill a benefit of a parallel processing. * - No guarantee to exist /sys/devices/system/cpu/online - * This is an issue especially when using containers. - * So, we use hardcode number for workaround. Current linux kernel - * (Linux 3.17) support 8192 cpus at maximum. Then 16384 is enough large. + * This is an issue especially when using Linux containers. + * So, we use hardcode number for a workaround. Current linux kernel + * (Linux 3.17) support 8192 cpus at maximum. Then 16384 must be enough. */ for (n=64; n < 16384; n *= 2) { size = CPU_ALLOC_SIZE(n); |