* slow in user space?
@ 2003-05-23 8:11 John Ma
2003-05-23 14:46 ` Dan Malek
2003-05-24 23:02 ` bhupinder sahran
0 siblings, 2 replies; 3+ messages in thread
From: John Ma @ 2003-05-23 8:11 UTC (permalink / raw)
To: linuxppc-embedded
Hi all,
I have a MPC8241 board and running ppc kernel 2.4.21-pre7 on it.
Serial console is enabled and a small ramdisk is mounted as root. The
board is running at 200M Hz. The kernel seems to be ok during bootup
(just a few seconds). But after the root filesystem is mounted and
/sbin/init is started, the system becomes very slow. I need to wait
several minutes for the login console.
My board has no rtc. So I assume that tb_ticks_per_jiffy is equal
to be 25M/HZ (25M is the memory clock frequency). tb_ticks_per_jiffy
will set the decrementer register which will control how long the timer
interrupt occurs. is it correct to set this value?
I have ever tried some smaller values for it and I found that the
speed becomes faster. But the time on the board becomes faster also
(uptime on the board is several hours but I power on it just several
minutes).
Does anyone have suggestions on it?
Thanks.
Best Regards
John
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: slow in user space?
2003-05-23 8:11 slow in user space? John Ma
@ 2003-05-23 14:46 ` Dan Malek
2003-05-24 23:02 ` bhupinder sahran
1 sibling, 0 replies; 3+ messages in thread
From: Dan Malek @ 2003-05-23 14:46 UTC (permalink / raw)
To: John Ma; +Cc: linuxppc-embedded
John Ma wrote:
> I have a MPC8241 board and running ppc kernel 2.4.21-pre7 on it.
> ....But after the root filesystem is mounted and
> /sbin/init is started, the system becomes very slow. I need to wait
> several minutes for the login console.
Your DUART interrupts aren't routed/initialized correctly. The serial
driver has timeouts that slowly poll the driver if interrupts aren't
showing up.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: slow in user space?
2003-05-23 8:11 slow in user space? John Ma
2003-05-23 14:46 ` Dan Malek
@ 2003-05-24 23:02 ` bhupinder sahran
1 sibling, 0 replies; 3+ messages in thread
From: bhupinder sahran @ 2003-05-24 23:02 UTC (permalink / raw)
To: John Ma, linuxppc-embedded
Hi
>From the inputs u have given, looks like Interrupt are
nor settled properly. After mounting the ramdisk
console driver (serial port in ur case)starts working
in interrupt mode. If serial port interrupt are not
set properly, It will work on timer based & system
will be slow.
It may help......................
Bhupi
www.gdatech.com
Linux+Hypertransport -> Silicon
www.gdatech.com
Good after beer -- Linux
--- John Ma <kwma@avantwave.com> wrote:
>
> Hi all,
> I have a MPC8241 board and running ppc kernel
> 2.4.21-pre7 on it.
> Serial console is enabled and a small ramdisk is
> mounted as root. The
> board is running at 200M Hz. The kernel seems to be
> ok during bootup
> (just a few seconds). But after the root filesystem
> is mounted and
> /sbin/init is started, the system becomes very slow.
> I need to wait
> several minutes for the login console.
> My board has no rtc. So I assume that
> tb_ticks_per_jiffy is equal
> to be 25M/HZ (25M is the memory clock frequency).
> tb_ticks_per_jiffy
> will set the decrementer register which will control
> how long the timer
> interrupt occurs. is it correct to set this value?
> I have ever tried some smaller values for it and
> I found that the
> speed becomes faster. But the time on the board
> becomes faster also
> (uptime on the board is several hours but I power on
> it just several
> minutes).
> Does anyone have suggestions on it?
>
> Thanks.
>
> Best Regards
> John
>
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-24 23:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-23 8:11 slow in user space? John Ma
2003-05-23 14:46 ` Dan Malek
2003-05-24 23:02 ` bhupinder sahran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).