Re: [lkp] [block] fbccf1df065: +276.3% boot-meminfo.KernelStack

From: Ming Lin
Date: Wed Jun 03 2015 - 14:39:59 EST


On Sun, May 31, 2015 at 6:46 PM, Huang Ying <ying.huang@xxxxxxxxx> wrote:
> FYI, we noticed the below changes on
>
> git://git.kernel.org/pub/scm/linux/kernel/git/mlin/linux.git block-generic-req
> commit fbccf1df06574add60bdb71103cc1662e477f02d ("block: make generic_make_request handle arbitrarily sized bios")
>
>
> testcase/path_params/tbox_group: boot/1/vm-kbuild-1G
>
> v4.1-rc4 fbccf1df06574add60bdb71103
> ---------------- --------------------------
> %stddev %change %stddev
> \ | \
> 1587 Â 7% +276.3% 5972 Â 1% boot-meminfo.KernelStack

I tested with 5 virtual disks.

diff meminfo.v4.1-rc4 diff meminfo.fbccf1df0
-Slab: 16908 kB
-SReclaimable: 8708 kB
-SUnreclaim: 8200 kB
-KernelStack: 1456 kB
-PageTables: 1496 kB
+Slab: 17492 kB
+SReclaimable: 8860 kB
+SUnreclaim: 8632 kB
+KernelStack: 2144 kB
+PageTables: 1480 kB

The KernelStack increase is because now we create bio pool for each
request_queue.

> 152390 Â 0% +4.8% 159697 Â 0% boot-slabinfo.num_objs
> 10149 Â 0% +15.8% 11750 Â 0% boot-slabinfo.num_pages
> 35916 Â 5% +18.0% 42368 Â 9% boot-meminfo.DirectMap4k
> 478516 Â 0% -1.9% 469269 Â 0% boot-meminfo.MemFree
> 11477 Â 0% +49.1% 17111 Â 1% boot-meminfo.SUnreclaim
> 40551 Â 0% +15.7% 46910 Â 0% boot-meminfo.Slab
>
> vm-kbuild-1G: qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap
> Memory: 1G

Could you send me the kernel config and full qemu command?
I'll try to reproduce it.

>
> boot-meminfo.KernelStack
>
> 7000 ++-------------------------------------------------------------------+
> | O O O O |
> 6000 O+ O O O O O O O O O O O O O O O O O O
> | |
> 5000 ++ |
> | |
> 4000 ++ |
> | |
> 3000 ++ |
> | |
> 2000 ++ *.. |
> * *..*..*..* : * |
> 1000 ++ .. + : |
> | + . + : |
> 0 ++-*--*--*---------------*-------------------------------------------+
>
> [*] bisect-good sample
> [O] bisect-bad sample
>
> To reproduce:
>
> apt-get install ruby
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
> cd lkp-tests
> bin/setup-local job.yaml # the job file attached in this email
> bin/run-local job.yaml

I got below error.

root@mlin-dev:~/lkp-tests# ./bin/run-local job.yaml
/usr/lib/ruby/2.1.0/psych.rb:464:in `initialize': No such file or
directory @ rb_sysopen -
/result/boot/1/msl-lab-afa03/debian-x86_64-2015-02-07.cgz/x86_64-lkp/gcc-4.9/9e46a1eba10500df620683e31742789ef2781e93/1/job.yaml
(Errno::ENOENT)
from /usr/lib/ruby/2.1.0/psych.rb:464:in `open'
from /usr/lib/ruby/2.1.0/psych.rb:464:in `load_file'
from /root/tmp/lkp-tests/stats/kernel-size:7:in `<main>'
/root/tmp/lkp-tests/stats/kernel-size < /dev/null exit code 1, check
/dev/shm/lkp-stats.70d8CxI7


root@mlin-dev:~# tree /result/
/result/
âââ boot
âââ 1
â âââ msl-lab-afa03
â âââ debian-x86_64-2015-02-07.cgz
â âââ x86_64-lkp
â âââ gcc-4.9
â âââ 9e46a1eba10500df620683e31742789ef2781e93
â âââ 0
â â âââ boot-meminfo
â â âââ boot-meminfo.json
â â âââ boot-slabinfo
â â âââ boot-slabinfo.json
â â âââ job.sh
â â âââ job.yaml
â â âââ matrix.json.gz
â â âââ memmap
â â âââ memmap.json
â â âââ sleep
â â âââ sleep.time
â â âââ sleep.time.json
â â âââ stats.json
â â âââ time
â â âââ time.json
â â âââ watchdog
â â âââ watch-oom
â âââ 1
â â âââ boot-meminfo
â â âââ boot-meminfo.json
â â âââ boot-slabinfo
â â âââ boot-slabinfo.json
â â âââ job.sh
â â âââ job.yaml
â â âââ matrix.json.gz
â â âââ memmap
â â âââ memmap.json
â â âââ sleep
â â âââ sleep.time
â â âââ sleep.time.json
â â âââ stats.json
â â âââ time
â â âââ time.json
â â âââ watchdog
â â âââ watch-oom
â âââ avg.json
â âââ matrix.json
â âââ stddev.json
âââ params.yaml

9 directories, 38 files
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/