we had the same issue on the same computers
and i finally removed the XRAMPERC=80
to let the terminals boot into X successfully,
but with Firefox crashes :-(
(potentially)


On 10/25/07, Jim Kronebusch <[EMAIL PROTECTED]> wrote:
> On Mon, 22 Oct 2007 12:23:10 -0700, Jordan Erickson wrote
> > Hello,
> >
> > (Ubuntu Feisty 64 w/i386 chroot)
> >
> > I've followed the saga that is Firefox taking too much memory when
> > loading graphically intensive pages (with workaround posted at
> > https://help.ubuntu.com/community/UbuntuLTSP/ResolveRamIssues ), and
> > implemented the workaround a couple of weeks ago.
>
> I read the link you referenced.  I don't think the instructions are 100% 
> correct.  The
> original instructions I received from Scott B did not have me copy ldm to the 
> screen.d
> location.  The files already existed.  I'll post the original instructions 
> below, then
> I'll post the contents of my $CHROOT/usr/lib/ltsp/screen.d/ldm under that so 
> you can
> rebuild yours.  I wonder if the extra stuff in that ldm script is whats 
> causing your
> trouble.
>
> ############# Original Instructions #####################
>
> First add the following to "/opt/ltsp/i386/usr/lib/ltsp/screen.d/ldm" above 
> the
> last line in the file that currently reads "exec ldm vt$ttynum :$displaynum":
>
> XRAMPERC=${XRAMPERC:-100}
>
> if [ ${XRAMPERC} -lt 100 ]; then
>   XMEM=0
>   while read TYPE VALUE UNITS; do
>     case ${TYPE} in
>       MemFree:|SwapFree:)
>           XMEM=$((${XMEM} + ${VALUE}))
>           ;;
>     esac
>   done < /proc/meminfo
>   XMEM=$((${XMEM} * ${XRAMPERC} / 100))
>
>   ulimit -v ${XMEM}
> fi
>
> Save the file and then modify /opt/i386/ltsp/etc/lts.conf and add the 
> following
> to your
> [Default] section:
>
> # Set maximum percentage of RAM consumed by X
> XRAMPERC=80
>
> ############# End original instructions ###################
>
> ########## Contents of original /opt/ltsp/i386/usr/lib/ltsp/screen.d/ldm 
> #########
>
> #!/bin/sh
> # Depend on the ldm package
> #
> # Copyright 2005, Canonical Ltd.
> #
> # This program is free software; you can redistribute it and/or modify it 
> under
> # the terms of the GNU General Public License as published by the Free 
> Software
> # Foundation; either version 2, or (at your option) any later version.
> #
> # This program is distributed in the hope that it will be useful, but WITHOUT 
> ANY
> # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
> FOR A
> # PARTICULAR PURPOSE.  See the GNU General Public License for more details.
> #
> # You should have received a copy of the GNU General Public License with your
> # Debian GNU system, in /usr/share/common-licenses/GPL.  If not, write to the
> # Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> # 02111-1307, USA.
>
>
> . /usr/lib/ltsp/ltsp_config
>
> # XXX
> PATH=$PATH:/usr/bin/X11
>
> tty=$(tty)
> case "$tty" in
>   /dev/tty*) # with udev (2.6 kernel)
>       ttynum=${tty#/dev/tty}
>       ;;
>   /dev/vc/*) # with devfs (2.4 kernel)
>       ttynum=${tty#/dev/vc/}
>       ;;
> esac
> displaynum=$(($ttynum - 1))
>
> exec ldm vt$ttynum :$displaynum
>
> ########### End contents of original /opt/ltsp/i386/usr/lib/ltsp/screen.d/ldm 
> ######
>
> If these changes work please post back and I'll update the wiki.
>
> Jim
>
> --
> This message has been scanned for viruses and
> dangerous content by the Cotter Technology
> Department, and is believed to be clean.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _____________________________________________________________________
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to