4 # Copyright (C) 2007 Karel Zak <kzak@redhat.com>
6 # This file is part of util-linux-ng.
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This file is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
19 TS_TOPDIR="$(dirname $0)/../.."
20 TS_DESC="limits overflow"
22 . $TS_TOPDIR/functions.sh
27 . $TS_SELF/functions.sh
29 ts_log "load original values"
30 for i in $IPCS_IDX; do
31 SHM_ORG[$i]=$(cat ${IPCS_PROCFILES[$i]})
34 ts_log "check for difference between kernel and IPC"
35 ipcs_limits_check >> $TS_OUTPUT
37 ts_log "maximalize kernel setting"
38 for i in $IPCS_IDX; do
39 echo ${IPCS_LIMITS[$i]} >> ${IPCS_PROCFILES[$i]}
42 ts_log "re-check for difference between kernel and IPC"
43 ipcs_limits_check >> $TS_OUTPUT
45 ts_log "write original values to kernel"
46 for i in $IPCS_IDX; do
47 echo ${SHM_ORG[$i]} >> ${IPCS_PROCFILES[$i]}