[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-issues
Subject:    [oe-issues] [Bug 3075] New: screen takes long time to start due to huge termcap file
From:       bugzilla-daemon () tinman ! treke ! net (bugzilla-daemon at tinman ! treke ! net)
Date:       2007-09-27 20:18:33
Message-ID: bug-3075-13 () http ! bugs ! openembedded ! org/
[Download RAW message or body]

http://bugs.openembedded.org/show_bug.cgi?id=3075

           Summary: screen takes long time to start due to huge termcap file
           Product: Openembedded
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Distributions
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: ploetz at informatik.hu-berlin.de


Created an attachment (id=3094)
 --> (http://bugs.openembedded.org/attachment.cgi?id=3094)
New termcap-mini package

About two weeks ago, screen in the openmoko builds started to take very long to
initially load and then for each new screen to be opened. I straced the problem
and found that it is due to the recent addition of the 700kb big /etc/termcap
file in revision 838a60f4684a5fe71ade31d05fb35609808420d1. screen takes about
two seconds to load the file to memory and then about 15 seconds to parse it.
As the file is necessary for the correct operation of libvte (and thus
openmoko-terminal2) it can't just be removed.

Instead I'd suggest stripping it down and removing all but the most essential
lines, with a command such as
 tic -C -e $(echo `grep ^xterm termtypes.tc  | cut -d "|" -f 1` | cut -d " " -f
- --output-delimiter=,) termtypes.tc
which will only output those termcap lines that relate to xterm terminals. I
confirmed that openmoko-terminal2 works fine with that and the file size is
reduced from 700kb to 11kb. I'll attach a patch for a new termcap-mini bitbake
recipe that will install this minimal version.

Reproducible: always
Steps to reproduce: 
 1. Install termcap (or have it pulled in via a dependency) and screen on a
low-cpu power device
 2. Start screen
 3. Dismiss the welcome screen
 4. Open a new screen with Ctrl-a c

Actual results: About 15 seconds delay with 100% CPU usage after each of the
steps 2, 3 and 4
Expected results: Instantaneous response


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic