Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: httpd not running after reboot
@ 2002-02-14 21:27 Robert M. Riches Jr.
  0 siblings, 0 replies; 8+ messages in thread
From: Robert M. Riches Jr. @ 2002-02-14 21:27 UTC (permalink / raw)
  To: axp-list

> From: Mark Arrasmith <arrasmith@math.twsu.edu>
> Date: Thu, 14 Feb 2002 14:56:51 -0600
>
> > From: "Robert M. Riches Jr." <richesr1@inetarena.com>
> >
> > > Maybe this is too obvious, but one kludgey workaround would be
> > > to put in a script to happen just before Apache tries to start,
> > > and have that script do a bunch of disk I/O.
> > >
>
> Works, but it adds 2 to 3 min's to the startup.  I wonder what the real 
> problem is.

Then, I would suggest doing just the minimum amount of disk I/O
to get Apache to start up.

Control of how much disk I/O is done could be accomplished by
piping the output of "find" to "head -40000" (or some other
number), provided this pipeline would cut off the "find" command
when the "head" command quit reading from stdin.  In the worst
case, a short C program or Perl script could read from the disk
until some end-point criterion was met.

Static determination of the needed amount could be done by trying
different amounts.  Binary search should find a close-to-optimal
solution in fairly short order.

It might be possible to do dynamic determination of the needed
amount by putting the "find" or other disk I/O generator in the
background, periodically checking for the presence of an "httpd"
process or some file that indicates Apache had started.  That's
essentially what I do with the X server on my system.

Good luck.

Robert Riches
richesr1@inetarena.com




^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: httpd not running after reboot
@ 2002-02-14 21:21 Barksdale, Ray
  0 siblings, 0 replies; 8+ messages in thread
From: Barksdale, Ray @ 2002-02-14 21:21 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

I had a problem like this...sort of.
I compiled MySQL with --with-mysqld-ldflags=-all-static (which had worked
before)
and started having similar issues with MySQL core dumping when a handle was
opened.
There's something in the MySQL manual about this. Just something to look at
if you
rolled your own.


> -----Original Message-----
> From: Mark Arrasmith [mailto:arrasmith@math.twsu.edu] 
> Sent: Thursday, February 14, 2002 2:57 PM
> To: axp-list@redhat.com
> Subject: Re: httpd not running after reboot
> 
> 
> On Thursday 14 February 2002 12:09 pm, Jon D. Breen wrote:
> > How about adding your find statement into the httpd startup file in 
> > /etc/init.d ?
> >
> > From: "Robert M. Riches Jr." <richesr1@inetarena.com>
> >
> > > Maybe this is too obvious, but one kludgey workaround would be to 
> > > put in a script to happen just before Apache tries to start, and 
> > > have that script do a bunch of disk I/O.
> > >
> 
> Works, but it adds 2 to 3 min's to the startup.  I wonder 
> what the real 
> problem is.
> 
> - mark
> 
> -- 
> Conversation, n.:
> 	A vocal competition in which the one who is catching his breath
> 	is called the listener.
> 
> 
> 
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com 
> https://listman.redhat.com/mailman/listinfo> /axp-list
> 




^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: httpd not running after reboot
@ 2002-02-14 17:59 Robert M. Riches Jr.
  2002-02-14 18:09 ` Jon D. Breen
  0 siblings, 1 reply; 8+ messages in thread
From: Robert M. Riches Jr. @ 2002-02-14 17:59 UTC (permalink / raw)
  To: axp-list

> From: Mark Arrasmith <arrasmith@math.twsu.edu>
> Date: Thu, 14 Feb 2002 11:08:11 -0600
>
> It seems lots of disk I/O gets apache to start.  One other strange thing was 
> MySQL would crash with an unaligned trap when apache would attempt to start 
> and fail.  Once I did the " find " from above all those problems seem to stop.
>
> So you can see why I was guessing that it might be the same thing.  I'm 
> really needing an automatic solution because this is a server I don't sit in 
> front of.  Anything else I could try?  Anything during the boot process I 
> could throw in?  Would recompiling apache, etc., help?

Maybe this is too obvious, but one kludgey workaround would be
to put in a script to happen just before Apache tries to start,
and have that script do a bunch of disk I/O.

Good luck.

Robert Riches
richesr1@inetarena.com




^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: httpd not running after reboot
@ 2002-02-13 23:43 Robert M. Riches Jr.
  2002-02-14 17:08 ` Mark Arrasmith
  0 siblings, 1 reply; 8+ messages in thread
From: Robert M. Riches Jr. @ 2002-02-13 23:43 UTC (permalink / raw)
  To: axp-list

> From: Mark Arrasmith <arrasmith@math.twsu.edu>
> Date: Wed, 13 Feb 2002 17:05:21 -0600
>
> First off . . . Thanks for the Video card suggestions.  I've ordered an ATI 
> Radeon PCI.  I'll let you know how it runs.  Onto my new problem.
>
> I have an old AS/200 running RedHat 7.1 as an apache, MySQL, and PHP server.  
> After reboot I can't get apache to start.  I keep getting errors like . . .
>
> alpha_fp_emul: Invalid FP insn 0x4f938 at 0x2000110dc78
>
> in messages.  But, if I start up XFree, apache will then start running.  
> Though it does have lots of . . . 
>
> httpd: unaligned trap at 000002000003a468: 47e0041847eb0c42 28 2
>
> errors in the messages log.  Any ideas?  I seem to remember someone talking 
> about seeding the random number generator and getting XFree to load quickly, 
> which might have something to do with this.  I couldn't find it in the 
> archives, and I might just be on crack.

Seeding the random number generator sounds like something I had
to do to get an X server to start up in a reasonable time.  One
option to fill the entropy pool (input to the random number
generator) is to chatter on the keyboard or move the mouse around
a bunch.  Another option is to invoke startx in background, then
cause a bunch of disk I/O.  In my case, I cat files from /usr/bin
to /dev/null until I see /tmp/.X11-unix/X$dispnum in existence.

Unfortunately, it doesn't seem this is likely to have anything to
do with the problem described above with FP emulation and apache.

Good luck.

Robert Riches
richesr1@inetarena.com

(I'm looking forward to reading the Linux Journal article on what
to do to/with/for spammers like the ones who lurk on mailing lists
to find addresses.)




^ permalink raw reply	[flat|nested] 8+ messages in thread
* httpd not running after reboot
@ 2002-02-13 23:05 Mark Arrasmith
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Arrasmith @ 2002-02-13 23:05 UTC (permalink / raw)
  To: axp-list

First off . . . Thanks for the Video card suggestions.  I've ordered an ATI 
Radeon PCI.  I'll let you know how it runs.  Onto my new problem.

I have an old AS/200 running RedHat 7.1 as an apache, MySQL, and PHP server.  
After reboot I can't get apache to start.  I keep getting errors like . . .

alpha_fp_emul: Invalid FP insn 0x4f938 at 0x2000110dc78

in messages.  But, if I start up XFree, apache will then start running.  
Though it does have lots of . . . 

httpd: unaligned trap at 000002000003a468: 47e0041847eb0c42 28 2

errors in the messages log.  Any ideas?  I seem to remember someone talking 
about seeding the random number generator and getting XFree to load quickly, 
which might have something to do with this.  I couldn't find it in the 
archives, and I might just be on crack.

- mark arrasmith

-- 
Reputation, adj.:
	What others are not thinking about you.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-02-14 21:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-14 21:27 httpd not running after reboot Robert M. Riches Jr.
  -- strict thread matches above, loose matches on Subject: below --
2002-02-14 21:21 Barksdale, Ray
2002-02-14 17:59 Robert M. Riches Jr.
2002-02-14 18:09 ` Jon D. Breen
2002-02-14 20:56   ` Mark Arrasmith
2002-02-13 23:43 Robert M. Riches Jr.
2002-02-14 17:08 ` Mark Arrasmith
2002-02-13 23:05 Mark Arrasmith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox