Wind River Support Network

HomeDefectsLIN10-4267
Fixed

LIN10-4267 : lmbench: Should interrupt test or report error when no enouth space for default path(/usr/tmp)

Created: Jul 12, 2018    Updated: Feb 11, 2019
Resolved Date: Jul 29, 2018
Found In Version: 10.17.41.3
Fix Version: 10.17.41.10
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Userspace

Description

$cat ../layers/wrlinux/dynamic-layers/openembedded-layer/recipes-benchmark/lmbench/lmbench_3.0-a9.bbappend
#
# Copyright (C) 2014 Wind River Systems, Inc.
#

FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"

SRC_URI += "file://lmbench-3.0-a9_wr_integration.patch \
            file://wr-lmbench-test.sh \
            file://upload-rth.sh \
            file://dealt_log.sh \
            file://README \
            file://generate_report.sh \
            file://scripts/sysinfo_lib.sh \
            file://scripts/utility.sh \
            file://config/default_case_conf \
            file://config/default_group_conf \
            file://config/template \
"

WR_LMBENCH ?= "/opt/benchmark/os/wr-lmbench"

inherit update-alternatives

do_install_append () {
        install -d ${D}/${WR_LMBENCH}
        install -m 0755 ${WORKDIR}/wr-lmbench-test.sh ${D}/${WR_LMBENCH}
        install -m 0755 ${WORKDIR}/upload-rth.sh ${D}/${WR_LMBENCH}
        install -m 0755 ${WORKDIR}/dealt_log.sh ${D}/${WR_LMBENCH}
        install -m 0755 ${WORKDIR}/generate_report.sh ${D}/${WR_LMBENCH}
        install -m 0664 ${WORKDIR}/README ${D}/${WR_LMBENCH}/
        cp -r ${WORKDIR}/config ${D}/${WR_LMBENCH}/
        cp -r ${WORKDIR}/scripts ${D}/${WR_LMBENCH}/
        mv ${D}${bindir}/hello ${D}${bindir}/hello.lmbench
}

ALTERNATIVE_${PN} = "hello"
ALTERNATIVE_PRIORITY = "100"
ALTERNATIVE_LINK_NAME[hello] = "${bindir}/hello"
ALTERNATIVE_TARGET[hello] = "${bindir}/hello.lmbench"

FILES_${PN} += "${WR_LMBENCH}"

RDEPENDS_${PN} += "bash"

root@intel-x86-64:/opt/benchmark/os/wr-lmbench# lmdd label="File /opt/benchmark/os/wr-lmbench/logs/jhu2.log write bandwidth: " of=/usr/tmp/jhu2.log move=512m fsync=1 print=3
write: wanted=8192 got=4096
File /opt/benchmark/os/wr-lmbench/logs/jhu2.log write bandwidth: 93763 KB/sec

root@intel-x86-64:/opt/benchmark/os/wr-lmbench# ls -l /usr/tmp/jhu2.log -lh
-rw-r--r-- 1 root root 421M Jul 11 10:53 /usr/tmp/jhu2.log

root@intel-x86-64:/opt/benchmark/os/wr-lmbench# df -lh
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       936M  920M     0 100% /
devtmpfs        921M     0  921M   0% /dev
tmpfs           923M     0  923M   0% /dev/shm
tmpfs           923M  8.9M  914M   1% /run
tmpfs           923M     0  923M   0% /sys/fs/cgroup
tmpfs           923M  416K  922M   1% /var/volatile
/dev/sda1        25M  8.7M   16M  36% /boot
tmpfs           923M     0  923M   0% /tmp
tmpfs           185M     0  185M   0% /run/user/0
/dev/sdb1        29G  557M   27G   3% /opt/benchmark/os/wr-lmbench/logs

cat wr-lmbench-test.sh -n
    51  ## We need a place to store a ${MB}m Mbyte file as well as create and delete a
    52  #+ large number of small files.  We default to /usr/tmp.  If /usr/tmp is a
    53  #+ memory resident file system (i.e., tmpfs), pick a different place.
    54  #+ Please specify a directory that has enough space and is a local file
    55  #+ system.


cat scripts/utility.sh -n
   122    FILE="$FSDIR/XXX"
   123    FILE_SIZE="$MB"
   124    rm -rf $FILE && touch $FILE
   125    lmdd label="File $FILE write bandwidth: " of=$FILE move=${FILE_SIZE}m fsync=1 print=3 2>&1

Steps to Reproduce

 ./main_test.py -s lmbench --option plan.ini

Other Downloads


Live chat
Online