Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

Windows slow to startup when not online with SFU installed

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> Windows slow to startup when not online with SFU installed Page: [1]
Login
Message << Older Topic   Newer Topic >>
Windows slow to startup when not online with SFU installed - Mar. 7, '04, 4:12:58 PM   
WhipHubley

 

Posts: 13
Joined: Jan. 31, '04,
Status: offline
hi - I notice that windows is slow to startup when SFU is installed and the box is not online.

I realise that this is common with UNIX when a fully qualified domain name for the localhost is not entered into the hosts file (sendmail usually gets the hump, for example)

however, I don' t have sendmail running, and even after entering a FQDN into my hosts file, I still get the long pause.

can anyone help explain what SFU is trying to lookup, and how I can resolve it?

thanks very much.
Post #: 1
RE: Windows slow to startup when not online with SFU in... - Mar. 7, '04, 7:58:50 PM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
I assume that " not online" means the system is not connected to the network, right ?

What do you mean by " windows is slow to startup" ? What exactly is slow ? When do you get " the long pause" ?
What part(s) of SFU did you install and which services did you enable ? (NFS client, NFS server, UserNameMapper, Interix, ...)

(in reply to WhipHubley)
Post #: 2
RE: Windows slow to startup when not online with SFU in... - Mar. 8, '04, 5:59:52 AM   
WhipHubley

 

Posts: 13
Joined: Jan. 31, '04,
Status: offline
yes - by " not online" I mean not on a network. more specifically doesn' t have access to domain name servers - be those on an internal LAN or on the internet - as I' m pretty sure that' s the issue here.

I' ve got a base install of SFU with no changes apart from installing bash. so AFAIK the only services running are inetd and cron. and of course everything in inetd.conf is commented out.

windows is slow to startup after logging in (ctrl alt delete, username and password, press enter - that bit) which is where I assume SFU itself starts up?

it' d be nice to check /var/log/syslog or dmesg, but I can' t find either of those!

any ideas? can you replicate it? (just pull the ethernet cable out the back of your box and have a go :-)

thanks.

(in reply to markfunk)
Post #: 3
RE: Windows slow to startup when not online with SFU in... - Mar. 8, '04, 10:34:27 AM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
Its important to know which components of SFU you' ve installed and which ones you are explicitly using.

The SFU Windows services start at boot time - not login time. And the Interix subsystem starts at boot time. Which means that Interix' s init and inetd also start at boot time. And some Interix daemons start at boot time (ie. cron).
At login time, only functionality that you' ve explicitly asked to start at login time are used. For instance, if you' ve asked for some network drives to be mounted at login time, then its possible that some of the SFU NFS driver software will be used while searching to map your network drive.
Depending on what else you' ve setup to start at login time (what other programs), other components of SFU may be used (like if you' ve asked for a bash shell to start, then the Interix subsystem will be used)

Normally, in my experience, if my machine is not connected to the network, my login is slower than normal, regardless of whether SFU is installed or not.

PS:
syslogd was disabled in SFU3.5 (security paranoia). You can easily re-enable it by uncommenting some lines in /etc/init.d/syslog.

(in reply to WhipHubley)
Post #: 4
RE: Windows slow to startup when not online with SFU in... - Mar. 8, '04, 4:05:28 PM   
WhipHubley

 

Posts: 13
Joined: Jan. 31, '04,
Status: offline
OK - thanks for your help on this. I' m still no nearer to solving the issue, but at least I know a bit more about how SFU starts up.

I' ll try and work backward (forwards?) from there to try and resolve it.

yes - I have set it so that I enter a bash shell.

(in reply to markfunk)
Post #: 5
RE: Windows slow to startup when not online with SFU in... - Mar. 8, '04, 4:17:00 PM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
Try turning off automatic startup of any Interix processes. (ie bash shell). Interix has been known to pause for long periods when trying to access non-existant domain controllers.

(in reply to WhipHubley)
Post #: 6
RE: Windows slow to startup when not online with SFU in... - Mar. 9, '04, 8:04:14 AM   
WhipHubley

 

Posts: 13
Joined: Jan. 31, '04,
Status: offline
I log into bash by executing this command...

C:\WINNT\system32\posix.exe /u /c /usr/local/bin/bash -l

...I don't think it's already running. I'm a bit of a newbie, but I've never heard of a shell running before you login before?

for example, if I log into ksh and then ps -ef | grep bash I see no bash process.

I do see /usr/sbin/zzInterix -s though. is that what you mean?

P.S. what's a domain controller? isn't that some windows thing? I'm not on a windows network. I have a standalone W2K box on a home LAN that connects to the internet. I installed SFU so that I can work on my scripting without dual-booting all the time :-)

< Message edited by WhipHubley -- Mar. 9, '04, 8:09:40 AM >

(in reply to markfunk)
Post #: 7
RE: Windows slow to startup when not online with SFU in... - Mar. 9, '04, 9:35:59 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
What Mark is referring to is you can have, as part of your log on,
one or more Interix processes start. It can be a shell (such as
bash) or a daemon or any utility. This is usually done as
a help or convenience to set things up the way you want to.

In this case it sounds-like your not.

The domain controller is the central machine providing common
user database, machine IP, etc. information. With a standalone
Windows machine it's usually said to be in a "workgroup" (for
historical reasons).

The Interix subsystem starts at boot time rather than at log on.
If you suspend or hibernate the system it's still running so
it doesn't restart. Back several years ago (when Interix was
owned by Softway Systems) when the Interix subsystem started it
would do some lookups for domain controller information if the
machine was part of a domain. Standalone/workgroup machines didn't
do this (because all of the user/machine information is local).
So if the machine was disconnected from the network and
part of a domain then things would bog down (long timeouts).
But this isn't the case with your machine because you tell us it
is standalone.

This leads us to ask a few other questions:
Can you give us the complete output from the command:
ps -Al

Maybe we'll spot something in that output.

Also how is your dial-up configured:
- do you have a fixed ip?
- is there a fixed IP for your gateway?
- is there a fixed IP for your DNS ?
- which AV software are you running ?
- when did you last defrag your disk ?
- how much disk space do you have left ?
- what is the disk swap set to right now ?

(in reply to WhipHubley)
Post #: 8
RE: Windows slow to startup when not online with SFU in... - Mar. 10, '04, 6:59:34 AM   
WhipHubley

 

Posts: 13
Joined: Jan. 31, '04,
Status: offline
OK - thanks for all this info.

FYI - I think I can confirm that I am not part of a domain. under control panel / system / network identification / properties, the radio button "workgroup" is active - and "domain" is greyed out.

onto the other stuff...

here's the output of ps -Al

bash-2.05b$ ps -Al
STATE UID PID PPID NI SZ WCHAN TTY TIME CMD
Sseg +SYSTEM 129 1 2 448 4a7be6e5 - 0:00.00 zzInterix
Ssu ahall 321 1 2 492 4a7be6e5 - 0:00.00 init
Seg ahall 387 1921 2 584 0 n00 0:00.02 ps
Ssu ahall 897 1 2 384 4a7a67b1 - 0:00.00 inetd
Ssu ahall 1857 1 2 504 4a7be6e5 - 0:00.00 cron
Sseg ahall 1921 1 2 1856 4a7b3285 n00 0:00.07 bash
Rs 0 0 0 10 0 0 S00 11:00.43 IdleProcess
R +SYSTEM 8 0 2 212 0 S00 0:03.49 SystemProcess
R +SYSTEM 156 8 -1 344 0 S00 0:00.10 smss.exe
R +SYSTEM 180 156 -3 2444 0 S00 0:01.10 csrss.exe
R +SYSTEM 200 156 -3 1896 0 S00 0:00.32 winlogon.exe
R +SYSTEM 228 200 1 5600 0 S00 0:00.39 services.exe
R +SYSTEM 240 200 1 1232 0 S00 0:00.14 lsass.exe
R +SYSTEM 356 228 2 1528 0 S00 0:00.24 Ati2evxx.exe
R +SYSTEM 448 228 2 3948 0 S00 0:00.05 svchost.exe
R +SYSTEM 476 228 2 4368 0 S00 0:00.07 spoolsv.exe
R +SYSTEM 528 228 2 9644 0 S00 0:00.27 svchost.exe
R +SYSTEM 564 228 2 1040 0 S00 0:00.02 regsvc.exe
R +SYSTEM 592 228 2 3384 0 S00 0:00.02 MSTask.exe
R +SYSTEM 640 228 2 1064 0 S00 0:05.55 WinMgmt.exe
R +SYSTEM 672 228 2 1888 0 S00 0:00.02 MsPMSPSv.exe
R +SYSTEM 684 228 2 5220 0 S00 0:00.05 svchost.exe
R +SYSTEM 696 228 2 1248 0 S00 0:00.02 PSXRUN.EXE
R +SYSTEM 708 156 -3 4700 0 S00 0:00.13 psxss.exe
R +SYSTEM 788 228 2 4216 0 S00 0:00.08 mapsvc.exe
R ahall 992 200 2 1444 0 S00 0:00.24 Ati2evxx.exe
R ahall 1216 1220 2 2080 0 S00 0:02.91 Explorer.EXE
R ahall 744 1216 2 1480 0 S00 0:00.02 devldr32.exe
R ahall 1276 1216 2 1200 0 S00 0:00.02 BCMSMMSG.exe
R ahall 1284 1216 2 1732 0 S00 0:00.02 internat.exe
R ahall 1076 1216 2 19116 0 S00 0:02.00 IEXPLORE.EXE
R ahall 892 1216 2 872 0 S00 0:00.02 posix.exe

Please note that this is the process output after SFU started up OK (that is, it was connected to the internet so was able to contact the network services it requires - I think DNS) although I'm sure we wouldn't see any different output otherwise.

my connection is configured thus...

the machine running SFU has a fixed private IP address, that connects to an ADSL modem / router that also has a fixed IP address on the LAN side. the modem / router picks up an IP address each time in connects to my ISP.

yes, the IP addresses for the ISP name servers are always the same. FYI, one of these is entered into /etc/resolv.conf

I can assure you this is a network issue (when I'm connected it starts up fine, when I'm not it "waits" - just like sendmail does on a UNIX / Linux box that doesn't have a FQDN (I'm sure you've come across this before, right?)) so the other questions about AV and disk are not relevant here.

thanks again for your help on this issue.

(in reply to Rodney)
Post #: 9
RE: Windows slow to startup when not online with SFU in... - Mar. 10, '04, 7:30:47 AM   
steveh

 

Posts: 195
Joined: Jan. 23, '04,
Status: offline
Have you tried disabling inetd? Its quite possible that its doing a lookup.
One silly thing to test is to set resolv.conf to resolv from 127.0.0.1 which will fail but fail quickly instead of timing out. This should show if its a DNS issue or not.

(in reply to WhipHubley)
Post #: 10
RE: Windows slow to startup when not online with SFU in... - Mar. 10, '04, 9:24:37 AM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
1) Why do you think it is the SFU install that is causing the "delay" ?

2) I don't see any evidence how Interix could be causing this delay.
Interix subsystem, and the daemons like inetd, cron, are started at boot time. Long before you login. As far as I can tell, your login process doesn't use Interix in any way.
When you login (ctrl-alt-Del, type password), I'm assuming that what you eventually get is your desktop displayed and nothing else. Just a bunch of icons and no other windows of any sort, right ?

3) /etc/resolv.conf is only used by a couple of Interix utilities. Like nslookup and sendmail.

4) There could be other SFU components (like NFS client) at work.
Just after you login, do you have any network drives mapped ?
What does "net use" display ?

(in reply to steveh)
Post #: 11
RE: Windows slow to startup when not online with SFU in... - Mar. 11, '04, 8:13:21 AM   
WhipHubley

 

Posts: 13
Joined: Jan. 31, '04,
Status: offline
quote:

ORIGINAL: steveh

Have you tried disabling inetd? Its quite possible that its doing a lookup.
One silly thing to test is to set resolv.conf to resolv from 127.0.0.1 which will fail but fail quickly instead of timing out. This should show if its a DNS issue or not.


OK, thanks for these tips.

disabled inetd (which is probably a good thing, considering I don't need it to be running) but it made no difference.

amended /etc/resolv.conf to the loopback address, but interestingly that made no difference either. can you confirm that if SFU were attempting a lookup (as I believe it is) that it should have timed out quicker?

if so then I must be wrong, because it certainly wasn't any quicker.

thanks.

(in reply to steveh)
Post #: 12
RE: Windows slow to startup when not online with SFU in... - Mar. 11, '04, 8:25:05 AM   
WhipHubley

 

Posts: 13
Joined: Jan. 31, '04,
Status: offline
quote:

ORIGINAL: markfunk

1) Why do you think it is the SFU install that is causing the "delay" ?

2) I don't see any evidence how Interix could be causing this delay.
Interix subsystem, and the daemons like inetd, cron, are started at boot time. Long before you login. As far as I can tell, your login process doesn't use Interix in any way.
When you login (ctrl-alt-Del, type password), I'm assuming that what you eventually get is your desktop displayed and nothing else. Just a bunch of icons and no other windows of any sort, right ?

3) /etc/resolv.conf is only used by a couple of Interix utilities. Like nslookup and sendmail.

4) There could be other SFU components (like NFS client) at work.
Just after you login, do you have any network drives mapped ?
What does "net use" display ?


1) because it never used to before installing it. I have never known W2K to wait after login when not online until I installed SFU.

2) in answer to the question - yes.

3) OK - thanks for the info. I have to admit I've only ever seen this issue (or should I say what seems similar to this issue) when dealing with sendmail - which doesn't start by default with SFU.

4) I didn't choose any NIS or NFS services to be installed. I don't think any NFS client components are there, either (how would I check?) when I type "net use" (interesting - I've never come across it before) it says "new connections will be remembered" "there are no entries in the list".

I realise that this is not a major issue, and it's very rare that I'm not online anyway, but can someone please just replicate this? I'm sure it wouldn't be too difficult to do!

then just let me know your results. thanks again.

(in reply to markfunk)
Post #: 13
RE: Windows slow to startup when not online with SFU in... - Mar. 11, '04, 10:16:30 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
For (4) when you write that you didn't choose NIS/NFS this
leads us back to ask what did you install?
Perhaps by narrowing down what did get installed and how
this might eliminate or point to possibilities.

So, when you installed did you choose the default install or
did you choose custom? If you chose customer did you change
any of the selections?

If you're not sure, the most straightforward way I can think of
is for you to put the SFU 3.5 CD in and choose that you are going
to add/change components. That will (after a few panels) get you
a tree of what is installed. More specific:

Start the Add/Remove program. Then choose Microsoft Windows Services
for UNIX. Then choose "Change". Then select the "Add/Remove" button
when asked. The next screen will show you what is and isn't install.
Expand out every section and tell us what is installed (doesn't have
a red X).

(in reply to WhipHubley)
Post #: 14
RE: Windows slow to startup when not online with SFU in... - Mar. 11, '04, 10:17:25 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Sorry, forgot to mention: when doing it through the Add/Remove Panel you don't need the CD.

(in reply to Rodney)
Post #: 15
RE: Windows slow to startup when not online with SFU in... - Mar. 11, '04, 2:28:44 PM   
WhipHubley

 

Posts: 13
Joined: Jan. 31, '04,
Status: offline
OK - here's what's installed...

all of utilities (base utilities, unix perl)

all of interix GNU components (interix GNU utilities, interix GNU SDK)

1 part of authentication tools for NFS (user name mapping)

the interix SDK

that's it.

please - can someone just pull the ethernet cable out the back of their PC and at least confirm replication of this! it'd take 2 mins :-)

(in reply to Rodney)
Post #: 16
RE: Windows slow to startup when not online with SFU in... - Mar. 12, '04, 3:59:17 AM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
I tried pulling the network on an XP and a Win2K machine. Then logged into the system using a local account.
I didn't notice any time difference. On both the time from typing password to displaying my desktop icons was around 4-5 seconds.

(in reply to WhipHubley)
Post #: 17
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> Windows slow to startup when not online with SFU installed Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.078