All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit b0870d55 authored by Russ Fish's avatar Russ Fish

Work around an intermittent Windows bug that David isolated.

parent 4f0d8075
......@@ -98,6 +98,7 @@ script-install: dir-install $(SCRIPTS)
$(INSTALL) -m 755 $(SRCDIR)/sudo.dummy /bin/sudo
$(INSTALL) -m 755 $(SRCDIR)/rc.firstboot $(BINDIR)/rc/rc.firstboot
$(INSTALL) -m 755 $(SRCDIR)/rc.cygwinxp $(BINDIR)/rc/rc.cygwin
$(INSTALL) -m 755 $(SRCDIR)/clean_logonui $(BINDIR)/clean_logonui
$(INSTALL) -m 755 $(SRCDIR)/rc.reboot $(BINDIR)/rc/rc.reboot
$(INSTALL) -m 755 $(SRCDIR)/rc.lmhosts $(BINDIR)/rc/rc.lmhosts
$(INSTALL) -m 755 $(SRCDIR)/netbt $(BINDIR)/netbt
......
#! /bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2007 University of Utah and the Flux Group.
# All rights reserved.
#
# clean_logonui - Kill the logonui.exe task periodically. It is instantly
# restarted by Windows, but is "cleaned out" in the process.
#
# This works around the 15-second "sawtooth" pattern that shows up in the load
# average. lsass.exe is run by logonui.exe and eats the whole CPU for a time
# proportional to the number of users in the Administrators group (local_roots
# in the project), possibly re-checking their authentication. This only shows
# up after a reboot where the accounts are already set up, so the first boot
# was always clean.
#
# On a slow machine, in a project like tbres with many local_roots, it eats
# 75% of the CPU. The CPU usage slowly grows over time, so we repeat the dose
# of medicine every few minutes.
while true; do
taskkill /F /IM logonui.exe
sleep 300
done
......@@ -193,4 +193,11 @@ else
fi
fi
# Spawn a script to kill the logonui.exe task periodically. It is instantly
# restarted by Windows, but is "cleaned out" in the process. This works
# around the 15-second "sawtooth" pattern that shows up in the load average
# after reboot and can eat most of the CPU.
logit "Starting clean_logonui in the background."
/bin/sh clean_logonui >& /dev/null &
logit "rc.firstboot finished."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment