{"id":192508,"date":"2013-09-04T12:15:03","date_gmt":"2013-09-04T08:15:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=192508"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=192508","title":{"rendered":"<span class=\"post_title\">\u042d\u043a\u043e\u043d\u043e\u043c\u0438\u044f \u043d\u0430 \u0441\u043f\u0438\u0447\u043a\u0430\u0445, \u0438\u043b\u0438 \u041d\u0435\u0443\u043b\u043e\u0432\u0438\u043c\u044b\u0439 \u0414\u0436\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043b\u0438 \u043d\u043e\u0432\u0438\u0437\u043d\u0443, \u0430 \u043b\u0438\u0448\u044c \u043f\u0440\u0438\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u043f\u043e\u0442 \u0432 \u044d\u0442\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/192264\/\">\u0430\u0434\u0441\u043a\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438<\/a>.<a name=\"habracut\"><\/a><\/p>\n<h3>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/h3>\n<p>  \u041f\u0440\u043e\u0447\u0442\u044f \u043f\u0430\u0440\u0443 \u0434\u043d\u0435\u0439 \u043d\u0430\u0437\u0430\u0434 \u0441\u0442\u0430\u0442\u044c\u044e \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0430 <a href=\"http:\/\/habrahabr.ru\/users\/pavlinux\/\" class=\"user_link\">pavlinux<\/a>, \u044f \u0431\u044b\u043b \u0432\u0435\u0441\u044c\u043c\u0430 \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043d, \u0432\u0435\u0434\u044c \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u043d\u043e\u0447\u044c\u044e \u044f \u043e\u0442\u043a\u0440\u044b\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f readahead \u0438, \u043f\u043e\u0434\u043a\u0440\u0443\u0442\u0438\u0432 \u043a\u0440\u0430\u043d\u0438\u043a\u0438, \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e\u0435 (\u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0438\u0434\u0435\u043e\u043b\u043e\u0433\u0438\u0438 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b) \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043d\u0438\u043c \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u0443\u044e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 \u0432\u0445\u043e\u0434 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c. \u041f\u043e\u0434\u0443\u043c\u0430\u043b\u043e\u0441\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0432\u044b\u0436\u0430\u0442\u044c \u0438\u0437 \u0441\u043a\u0440\u043e\u043c\u043d\u043e\u0439 \u043f\u0435\u0447\u0430\u0442\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u043a\u0438 \u043d\u0430 \u0431\u0430\u0437\u0435 Intel Atom \u0435\u0449\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e?<br \/>  \u0422\u0430\u043a \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e, \u043f\u043e\u043c\u0438\u043c\u043e ssh \u0438 telnet, \u0432 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u044f \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e web-\u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0442\u043e \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043d\u0430 \u0432\u0448\u0438\u0432\u043e\u0441\u0442\u044c \u044f \u0443\u0441\u0442\u0440\u043e\u044e \u0438\u043c\u0435\u043d\u043d\u043e \u0435\u043c\u0443. \u041f\u043e\u0437\u0430\u0431\u0443\u0434\u0435\u043c \u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u0439\u043d\u044b \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u00ab\u043a\u0430\u043a\u043e\u0439 \u0436\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043b\u0443\u0447\u0448\u0438\u0439\u00bb: \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u043f\u043e\u0434 \u043d\u043e\u0436 \u043b\u043e\u0436\u0438\u0442\u0441\u044f Google Chrome 29.0.1547.62 (r219432).<\/p>\n<h3>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h3>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0412\u0430\u0448 \u043f\u043e\u043a\u043e\u0440\u043d\u044b\u0439 \u0441\u043b\u0443\u0433\u0430 \u2014 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043b\u043e\u0436\u0435\u0446 1-\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044f \u0431\u0443\u0434\u0443 bash \u0434\u043b\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430:   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">trace_google_chrome<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">#!\/bin\/bash ENV_EXCLUDE=('^SUDO_' '^GREP_' '^LS_' '^KONSOLE_' '^_$') ENV_PERSIST=('^PATH$' '^LOGNAME$' '^USER' '^HOME$')  sudo true || return 1  T0=$(mktemp) sudo -E env | cut -d'=' -f1 | tee ${T0} &&gt;\/dev\/null  T1=$(mktemp) for i in ${ENV_EXCLUDE[@]}; do egrep -e &quot;$i&quot; &lt; ${T0} &gt;&gt; ${T1}; done  T2=$(mktemp) for i in ${ENV_PERSIST[@]}; do egrep -e &quot;$i&quot; &lt; ${T0} &gt;&gt; ${T2}; done  rm ${T0} STRACE_ARGS=''  while read L; do \tSTRACE_ARGS=${STRACE_ARGS}&quot; -E $L&quot; done &lt; ${T1}; rm ${T1}  while read L; do \tdeclare -p $L &&gt;\/dev\/null || continue \tV=$(env | egrep -e ^$L) \tSTRACE_ARGS=${STRACE_ARGS}&quot; -E $V&quot; done &lt; ${T2}; rm ${T2}  U=$(whoami)  date --rfc-3339=ns &gt;d.begin  sudo -E strace -ff -o zzz -v -s 256 -T \\ -u ${U} -E USERNAME=${U} ${STRACE_ARGS} \\ -e trace=file,signal,ipc google-chrome  date --rfc-3339=ns &gt;d.end<\/code><\/pre>\n<\/div>\n<\/div>\n<p><sub>\u041f\u043e\u0441\u044b\u043f\u0430\u044e \u0433\u043e\u043b\u043e\u0432\u0443 \u043f\u0435\u043f\u043b\u043e\u043c \u0438 \u043a\u0430\u044e\u0441\u044c, \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u043b\u0443\u0447\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<br \/>  \u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0412\u0430\u0448\u0438\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/sub><\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435, \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043f\u0430\u0440\u0442\u0430\u043d\u0441\u043a\u0438\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u2014 \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u043c \u043a\u044d\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438 \u0437\u0430\u043e\u0434\u043d\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 (<i>pagecache<\/i>, <i>dentries<\/i> \u0438 <i>inodes<\/i>):<\/p>\n<pre><code>$ find .cache\/google-chrome\/ -mindepth 1 -delete $ sync $ sudo sysctl -w vm.drop_caches=3 vm.drop_caches = 3<\/code><\/pre>\n<h3>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0443\u0439\u043c\u0443 \u0432\u043a\u043b\u0430\u0434\u043e\u043a \u0441 \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u043e\u043c \u0441\u0430\u0439\u0442\u043e\u0432. \u042f \u0437\u043d\u0430\u044e, \u0447\u0442\u043e \u0412\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0442\u0430\u043a \u0434\u0435\u043b\u0430\u0435\u0442\u0435, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 \u0448\u0442\u0430\u0442\u043d\u0430\u044f.<\/p>\n<pre><code>$ trace_google_chrome Fontconfig warning: &quot;\/etc\/fonts\/conf.d\/50-user.conf&quot;, line 9: reading configurations from ~\/.fonts.conf is deprecated. [19883:19883:0904\/013557:ERROR:profile_sync_service.cc(1240)] History Delete Directives, Sync Error: Delete directives not supported with encryption. Fontconfig warning: &quot;\/etc\/fonts\/conf.d\/50-user.conf&quot;, line 9: reading configurations from ~\/.fonts.conf is deprecated. [19883:19909:0904\/013606:ERROR:native_backend_kwallet_x.cc(848)] Error obtaining KWallet handle ATTENTION: default value of option force_s3tc_enable overridden by environment. [WARNING:flash\/platform\/pepper\/pep_module.cpp(63)] SANDBOXED [WARNING:flash\/platform\/pepper\/pep_module.cpp(63)] SANDBOXED ATTENTION: default value of option force_s3tc_enable overridden by environment. ATTENTION: default value of option force_s3tc_enable overridden by environment.<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043a\u043e\u0433\u043e-\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u0430, \u043d\u043e \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u0441\u0442\u0440\u0435\u0441\u0441.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/725\/06f\/a4f\/72506fa4f2ab31579cebdb1a07adf7dd.png\"\/><\/p>\n<p>  \u041f\u043e\u0441\u0451\u0440\u0444\u0438\u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f (\u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u044b\u0448\u043b\u043e \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0430 \u2014 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u044b\u0442\u0435\u0440\u043f\u0435\u0442\u044c \u043d\u0435 \u0441\u043c\u043e\u0433), \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:  <\/p>\n<pre><code>$ egrep -He^ d.* d.begin:2013-09-04 01:35:39.040184387+04:00 d.end:2013-09-04 02:57:34.084098826+04:00 $ du -ch zzz.* | tail -n 1 34M     \u0438\u0442\u043e\u0433\u043e<\/code><\/pre>\n<p>  \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043e\u043a \u0432 \u043e\u0434\u0438\u043d \u0438 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c:  <\/p>\n<pre><code>$ cat zzz.* &gt; z $ sort &lt; z &gt; z.sorted $ wc -l &lt; z.sorted 243048<\/code><\/pre>\n<p>  \u0423\u0434\u0430\u043b\u0438\u043c \u0438\u0437 \u0432\u044b\u0432\u043e\u0434\u0430 \u0441\u0442\u0440\u043e\u043a\u0438, \u043d\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u043a \u0432\u044b\u0437\u043e\u0432\u0430\u043c (&quot;+++ exited with 0 +++&quot; \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438):  <\/p>\n<pre><code>$ egrep -ve '^\\+' &lt; z.sorted &gt; z.clean $ wc -l &lt; z.clean 242474<\/code><\/pre>\n<p>  \u0412\u044b\u0431\u0435\u0440\u0435\u043c \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0437\u043e\u0432 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u043b\u0441\u044f \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e (\u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0443 <a href=\"http:\/\/habrahabr.ru\/users\/pavlinux\/\" class=\"user_link\">pavlinux<\/a>):  <\/p>\n<pre><code>$ fgrep -e ' = -' &lt; z.clean &gt; z.fail $ wc -l &lt; z.fail 39810<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0446\u0435\u043d\u0442 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0440\u0430\u0432\u0435\u043d 16,418%.<br \/>  \u041d\u0435\u043c\u0430\u043b\u043e, \u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0433\u043b\u0443\u0431\u0436\u0435 \u0438 \u0443\u0437\u043d\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043d\u0435\u0443\u0434\u0430\u0447:  <\/p>\n<pre><code>$ cut -d'(' -f1 &lt; z.fail | uniq &gt; z.fail.names $ cat z.fail.names | &gt; while read SYSCALL; do &gt; echo -n &quot;${SYSCALL}:&quot; &gt; egrep -ce &quot;^${SYSCALL}\\(&quot; z.fail &gt; done access:16807 chmod:2 execve:56 faccessat:6 fstatat64:46 lstat64:91 mkdir:8 openat:155 open:7812 readlinkat:4909 readlink:86 rt_sigaction:59 rt_sigreturn:8 shmctl:1 sigreturn:47 stat64:9658 statfs64:39 unlink:20<\/code><\/pre>\n<p>  \u0412\u044b\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u043f\u043e\u043c\u0438\u043c\u043e \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0445 <i>open<\/i> \u0438 <i>stat64<\/i> \u0435\u0441\u0442\u044c \u0435\u0449\u0451 \u0438 <i>access<\/i> \u0438 <i>readlinkat<\/i>.<\/p>\n<p>  \u0412\u0441\u0451 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0438 \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430,<br \/>  \u043d\u043e \u043f\u043e\u0440\u0430 \u0443\u0437\u043d\u0430\u0442\u044c, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043e \u043d\u0430 \u044d\u0442\u0438 \u0441\u0430\u043c\u044b\u0435 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b.<br \/>  \u0412\u044b\u0431\u0435\u0440\u0435\u043c \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u0430:<\/p>\n<pre><code>$ sed -nre '\/^.* &lt;([0-9\\.]+)&gt;$\/{s##\\1#;p}' &lt; z.fail &gt; z.fail.timing<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \u043f\u043e\u0447\u0442\u0438 40 \u0442\u044b\u0441\u044f\u0447 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. \u042f \u0431\u044b\u043b \u0447\u0435\u0440\u0435\u0441\u0447\u0443\u0440 \u043b\u0435\u043d\u0438\u0432 \u0438 \u0432\u0437\u044f\u043b \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043a\u043e\u0434 <a href=\"http:\/\/stackoverflow.com\/a\/18380369\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a>:<\/p>\n<pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; int main(void) {     ssize_t read;     char *line = NULL;     size_t len = 0;     double sum = 0.0;     while (read = getline(&line, &len, stdin) != -1) {         sum += atof(line);     }     printf(&quot;%f\\n&quot;, sum);     return 0; }<\/code><\/pre>\n<p>  \u0412\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434:  <\/p>\n<pre><code>$ gcc sum.c -o sum; .\/sum &lt; z.fail.timing 4.173705<\/code><\/pre>\n<p>  \u0418\u0442\u043e\u0433 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c: \u043d\u0430 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b Google Chrome \u0438 \u0432\u0441\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b\u0438 4 \u0441\u0435\u043a\u0443\u043d\u0434\u044b.<br \/>  \u0420\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u2014 1 \u0447\u0430\u0441 11 \u043c\u0438\u043d\u0443\u0442 \u0438 55 \u0441\u0435\u043a\u0443\u043d\u0434, \u0438\u043b\u0438 4315 \u0441\u0435\u043a\u0443\u043d\u0434.<br \/>  \u041f\u0440\u043e\u0446\u0435\u043d\u0442 \u00ab\u0443\u0442\u0435\u0440\u044f\u043d\u043d\u043e\u0433\u043e\u00bb \u0432\u0440\u0435\u043c\u0435\u043d\u0438: 4\/4315 = ~ 0,093%. \u0414\u0430\u0436\u0435 \u043d\u0435 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0446\u0435\u043d\u0442, \u0430 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u043c\u0438\u043b\u043b\u0435 \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0430\u0442\u044f\u0436\u043a\u043e\u0439.<\/p>\n<h3>\u0412\u044b\u0432\u043e\u0434\u044b<\/h3>\n<p>  \u041f\u0443\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0435\u0448\u0438\u0442 \u0441\u0430\u043c \u0434\u043b\u044f \u0441\u0435\u0431\u044f. \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043b\u0438\u0448\u043d\u0438\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0412\u0430\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\/\u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u00ab\u0432\u0448\u0438\u0432\u043e\u0441\u0442\u044c\u00bb \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0438 \u0443\u0437\u043d\u0430\u0442\u044c, \u0433\u0434\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u0437\u043a\u0438\u0435 \u043c\u0435\u0441\u0442\u0430 \u0438 \u043a\u0430\u043a \u0441 \u043d\u0438\u043c\u0438 \u0431\u043e\u0440\u043e\u0442\u044c\u0441\u044f. \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0432\u0441\u044f\u043a\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u043c\u0435\u0440\u0443, \u0438 \u043f\u0435\u0434\u0430\u043d\u0442\u0438\u0447\u043d\u043e-\u043f\u0430\u0440\u0430\u043d\u043e\u0438\u0434\u0430\u043b\u044c\u043d\u0430\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\/\u0444\u0430\u0439\u043b\u043e\u0432 \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0434\u043e\u043b\u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0434\u0430\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0443, \u043d\u043e \u044d\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043b\u0438\u0448\u044c \u0434\u043e\u043b\u0438 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u041e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0445 \u0441 \u0441\u0443\u043c\u0430\u0448\u0435\u0434\u0448\u0438\u043c \u0430\u043f\u0442\u0430\u0439\u043c\u043e\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u043e \u0438\u0445 \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u0412 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432, \u0432\u0441\u0451 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0412\u0430\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0412\u044b \u0446\u0435\u043d\u0438\u0442\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f.<br \/>  \u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0435\u0440\u0435 \u0438 \u044f \u043d\u0435 \u0446\u0435\u043d\u044e \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f: \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u0432\u0440\u0435\u043c\u044f \u0441\u043d\u0430 \u043d\u0430 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u043f\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e \u0442\u043e, \u0447\u0442\u043e \u00ab\u043d\u0435 \u043d\u0430\u0434\u043e \u043c\u0435\u0448\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043b\u0451\u0442\u0443 \u043b\u0435\u0442\u0430\u0442\u044c\u00bb.<\/p>\n<h3>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>  \u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u0440\u0438\u0437\u0432\u0430\u043d\u0430 \u043d\u0435 \u0443\u043d\u0438\u0437\u0438\u0442\u044c \u0442\u043e\u0432\u0430\u0440\u0438\u0449\u0430 <a href=\"http:\/\/habrahabr.ru\/users\/pavlinux\/\" class=\"user_link\">pavlinux<\/a> \u0438\u043b\u0438 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u044c\u044e, \u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430 \u043d\u044e\u0430\u043d\u0441\u044b, \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0431\u0435\u0437 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0431\u0435\u0437 \u043f\u0435\u0440\u0432\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u044f \u0431\u044b \u043d\u0435 \u0441\u0442\u0430\u043b \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u043e\u0447\u043d\u044b\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438 <s>\u0434\u0443\u043c\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0432\u043e\u0439<\/s> \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e.<\/p>\n<p>  PS: \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 4.17 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u0435\u0441\u0442\u044c \u041d\u0435\u0443\u043b\u043e\u0432\u0438\u043c\u044b\u0439 \u0414\u0436\u043e. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/192508\/\"> http:\/\/habrahabr.ru\/post\/192508\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043b\u0438 \u043d\u043e\u0432\u0438\u0437\u043d\u0443, \u0430 \u043b\u0438\u0448\u044c \u043f\u0440\u0438\u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u043f\u043e\u0442 \u0432 \u044d\u0442\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/192264\/\">\u0430\u0434\u0441\u043a\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438<\/a>.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-192508","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192508"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/192508\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}