Bug#879450: fcheck is run too often from cron, without checking if the previous instance has finished. The result over time is too many processes and slow system

2017-10-21 Thread Michel van der Laan
Package: fcheck
Version: 2.7.59-19
Severity: normal
Tags: d-i newcomer

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
A: Just leaving the system up & running, generally on my system it
starts to impact the wholesystem performance within 24 hours, because the
fcheck script is launched every 2 hours from cron. As 'fcheck' does consume
quite someresources, every additional instance makes the performanc worse (and
makes it less likely for any of the scheduled processes to ever finish, so the
problem amplifies itself. The effects become severely noticable on the
graphical desktop as well, moving the mouse pointer shows sluggish behaviour,
to the point  that it appears that the system has frozen (where in fact is has
not, it's just unimaginably slow). Additional cronjobs from other packages then
also make things worse. I was able to regain control and restore performance
only by ssh'ing into the system and kill all CPU-hogs and duplicate processes
(the duplicate fcheck jobs also caused a few other duplicate cronjobs; those
could also benefit from a check if they aren't already running, but 'fcheck'
was really the root cause).

(NOTE: as described above, fcheck is not the only command or program that is
scheduled to run over-frequently from CRON, I also caught a few others with
similiar behaviour (i.e. that they do not check if their previous instance has
fnished running; ubnfortunately I can't remember which jobs those where.)

   * What exactly did you do (or not do) that was effective (or
 ineffective)?
A: For the moment, I have changed the command to run from once every 2
hours, to once a day for now.
Since it's written in Perl, I intend to change the script and built in a simple
check using pid- of lock-files under /var/run, with a paranoia check that these
aren't stale, as well as a check of the proces-list in the event that the
proces is running, but has not written a lock-file or pid-file. I am not sure
if I should take into account that concurrent fcheck-process may or should be
possible, when each is checking a different set of directory trees, but at
first sight I can only find a single global configuration, so if concurrent
sessions on different trees may occur, then it probably pertains to a user-
customized instance.


   * What was the outcome of this action?
A: For the moment, after killing off the mulitple instances of
'fcheck', it's no longer hogging the CPU's and the sytem is responsive again.
But it hasn't been 24 hours yet, so I can't be sure if the next run will
complete within 24 hours (I know that a single run takes well over 2 hours. I
do not know if this is perhaps the indication of a different problem, and that
the 'fcheck'  process really shouldn't take that long.

   * What outcome did you expect instead?
A: For now, as only little time has passed, the outcome cannot yet
differ from what I expect. If I find the next 'fcheck' run takes well over 24
hours (or even 12 hours), this would be a serious concern.

GENERAL NOTES & SUGGESTIONS, not pertaining to 'fcheck' allone but the Debian
installation/distribution as a whole:
===
I am also wondering if the control (checks & balances) on whether the
(previous) jobs have finished), cannot be built into cron - the scheduler that
launches the jobs. Perhaps rather than launching or forking off the job in the
backgroup and never look back at its children, cron could be changed to only
launch a new scheduled process if its certain that the previous one has
terminated?

On a general note to the maintainers that consolidate all packages to 'a full
distribution', I believe that some thought should be given to packages that
require/install cron-entries, and should question if the commandsor jobs should
really run as often as the package maintainers suggest (or populate the at- and
cron tables) and that the package maintainers should justify with valid
arguments how often they find that their (package) jobs should be scheduled,
taking into account how long they may run on less powerfull systems, and also
that for a standard installation, I find there are really *a lot* of cron
entries (compared to some years ago). Are they really all necessary (and do
they need to run so frequently?). Especially for less knowledgable users, this
is a mysterious portion of the system configuration where it's hard to
ascertain from the crontable itself/allone what the impact is of disabling or
decreasing the frequency of jobs. Kindly take this into consideration.


*** End of the template - remove these template lines ***



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en

Bug#309320: xine-ui: xine refers to non-existant cursor glyph (9A)

2005-05-16 Thread Michel van der Laan
Package: xine-ui
Version: 0.99.3-1
Severity: important


At startup (of any MRL attempted to play), xine reports:

X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  94 (X_CreateGlyphCursor)
  Value in failed request:  0x9a
  Serial number of failed request:  137
  Current serial number in output stream:  142

the problem appears to be that xine is referring to cursor index '0x9a'
which doesn't exist:

michel:~$ showfont -start $((0x9a)) -fn cursor
opened font cursor
Direction: Left to Right
Range:  0 to 153
All chars exist
Default char: 0
Min bounds:
Left: -15Right: 0  Ascent: -1 Descent: 0  Width: 10
Max bounds:
Left: 1  Right: 16 Ascent: 15 Descent: 16 Width: 17
Font Ascent: 16  Font Descent: 17
COPYRIGHT   These "glyphs" are unencumbered
POINT_SIZE  310
FONTcursor
WEIGHT  10
RESOLUTION  107
RESOLUTION_X78
RESOLUTION_Y78
X_HEIGHT-1
QUAD_WIDTH  13
adjusting range -- specifed first char is after end
char #154 0x009a
Left: 0  Right: 0  Ascent: 0  Descent: 0  Width: 0
Nonexistent character

(last line says it all... 0x99 is the last one that has a character 
assigned). I could find no references of this at xinehq.de however
the bug seems to be acknowledged (20-apr-2005) here:

http://www.mail-archive.com/cygwin-xfree@cygwin.com/msg13880.html
http://www.mail-archive.com/cygwin-xfree@cygwin.com/msg13916.html

(don't be fooled by the 'cygwin' in the url, it's been reported
to affect redhat, mandrake and ofcourse debian as well).

I have also attempted to upgrade package 'xfonts-base' to no
avail.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages xine-ui depends on:
ii  libc62.3.2.ds1-21GNU C Library: Shared libraries an
ii  libcurl3 7.13.1-1Multi-protocol file transfer libra
ii  libfreetype6 2.1.7-2.3   FreeType 2 font engine, shared lib
ii  libice6  4.3.0.dfsg.1-10 Inter-Client Exchange library
ii  libidn11 0.5.2-3 GNU libidn library, implementation
ii  libncurses5  5.4-4   Shared libraries for terminal hand
ii  libpng12-0   1.2.8rel-1  PNG library - runtime
ii  libreadline5 5.0-10  GNU readline and history libraries
ii  libsm6   4.3.0.dfsg.1-10 X Window System Session Management
ii  libssl0.9.7  0.9.7e-2SSL shared libraries
ii  libx11-6 4.3.0.dfsg.1-10 X Window System protocol client li
ii  libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte
ii  libxine1 1.0.1-1 the xine video/media player librar
ii  libxtst6 4.3.0.dfsg.1-12.0.1 X Window System event recording an
ii  libxv1   4.3.0.dfsg.1-10 X Window System video extension li
ii  xlibs4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu
ii  zlib1g   1:1.2.2-3   compression library - runtime

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]