lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ulimits for `lilypond-test' in gub


From: Werner LEMBERG
Subject: ulimits for `lilypond-test' in gub
Date: Tue, 01 Jan 2019 11:15:27 +0100 (CET)

Folks,


running `lilypond-test' in gub uses the following ulimit values for
creating the regression EPS files:

  ulimit -m 524288
  ulimit -d 524288
  ulimit -v 2097152

Interestingly, this is not sufficient on my 64bit openSuSE 42.3
GNU/Linux box with my forthcoming changes to restrict fontconfig to
fonts from gub only: Handling the file name list file
`out/lybook-testdb/snippet-names-5692165138572845334.ly' fails in
jobĀ 1 while processing file `40/lily-dee14dc0.ly' (i.e.,
`paper-twosided.ly')

Generously increasing ulimit parameters

  ulimit -m 1048576
  ulimit -d 1048576
  ulimit -v 3145728

did work, however.  How shall I proceed?  Is there an easy way to find
the minimum ulimit values that are necessary and/or sufficient?  I can
imagine this influences the settings needed for creating and running
VMs...

Attached is a script that exactly replicates the problematic lilypond
command (with all the necessary environment variables) in case people
want to play with it.


    Werner
# manual execution of `lilypond-test' EPS file generation within gub
#
# tested with lilypond git commit 8947c1ce3f3295e786c3d722dcb7b24087f50600
#
# original ulimit values:
#
#   ulimit -m 524288
#   ulimit -d 524288
#   ulimit -v 2097152

GUBDIR=/home/wl/git/gub

cd 
$GUBDIR/target/linux-64/build/lilypond-git.sv.gnu.org--lilypond.git-master/out/lybook-testdb
 \
&& ulimit -m 1048576 \
&& ulimit -d 1048576 \
&& ulimit -v 3145728 \
&& PATH=\
$GUBDIR/target/tools/root/usr/bin\
:$GUBDIR/target/linux-64/root/usr/bin:$PATH \
   MALLOC_CHECK_=2 \
   LD_LIBRARY_PATH=\
$GUBDIR/target/tools/root/usr/lib\
:$GUBDIR/target/linux-64/root/usr/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} \
   GS_FONTPATH=\
$GUBDIR/target/linux-64/root/usr/share/ghostscript/9.21/fonts\
:$GUBDIR/target/linux-64/root/usr/share/gs/fonts \
   GS_LIB=\
$GUBDIR/target/linux-64/root/usr/share/ghostscript/9.21/Resource/Init\
:$GUBDIR/target/linux-64/root/usr/share/ghostscript/9.21/Resource \
   FONTCONFIG_FILE=$GUBDIR/target/linux-64/root/usr/etc/fonts-gub/fonts.conf \
   FONTCONFIG_PATH=$GUBDIR/target/tools/root/usr/etc/fonts-gub \
   $GUBDIR/target/linux-64/root/usr/bin/lilypond \
     -I 
$GUBDIR/target/linux-64/src/lilypond-git.sv.gnu.org--lilypond.git-master/input/regression
 \
     -dbackend=eps \
     --formats=ps \
     -djob-count=2 \
     -dseparate-log-files \
     -dinclude-eps-fonts \
     -dgs-load-fonts \
     --header=texidoc \
     -I 
$GUBDIR/target/linux-64/src/lilypond-git.sv.gnu.org--lilypond.git-master/Documentation/included/
 \
     -ddump-profile \
     -dcheck-internal-types \
     -ddump-signatures \
     -danti-alias-factor=1 \
     
-dfont-export-dir=$GUBDIR/target/linux-64/build/lilypond-git.sv.gnu.org--lilypond.git-master/out-fonts
 \
     -O TeX-GS \
     -I "./" \
     -I 
"$GUBDIR/target/linux-64/build/lilypond-git.sv.gnu.org--lilypond.git-master/input/regression"
 \
     -I 
"$GUBDIR/target/linux-64/src/lilypond-git.sv.gnu.org--lilypond.git-master/input/regression"
 \
     --formats=eps \
     -deps-box-padding=3.000000 \
     -dread-file-list \
     -dno-strip-output-dir \
     
"$GUBDIR/target/linux-64/build/lilypond-git.sv.gnu.org--lilypond.git-master/out/lybook-testdb/snippet-names-5692165138572845334.ly"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]