Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Complete system lockup at random times... --Solved.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Plain-old-Jeb
n00b
n00b


Joined: 19 Dec 2003
Posts: 51
Location: My House

PostPosted: Sat Jan 03, 2004 4:10 pm    Post subject: Complete system lockup at random times... --Solved. Reply with quote

Basically my problem is Gentoo will completly lockup at completly random stages, wether I'm in the terminal or under X, generally the lockups occur when emerging but I have also had a lockup copying files, booting, and loading gnome, I recently just finished reinstalling gentoo to get a clean start (my permisions were stuffed) however even under my old installation I would experience consistent lockups when emerging in an xterm (as long as I did it in the normal terminal rather than under X it would be fine).

I'm not using any unstable components im using vanilla 2.6.0 sources, and no masked packages, My partitions are all ext3 partitions (My previous installation was using JFS partitions), I haven't used any particularly aggresive optimisations....

Code:

-march=athlon-xp -O3 -funroll-loops -pipe


My system isn't overclocked and I have it setup to use the memory tunnings .etc. for optimal stability, I'm am using ultra-dma on my harddisks however I have the same problem when using dma and various safe optimisations.

My specs are:
Athlon-xp 2600+
1gb DDR 3200 ram (Using single data rate)
nForce2 based motherboard + 3com ethernet controller (Thankgod :twisted:)

Any help/suggestions would be apperciated and thankyou in advance.
_________________
emerge -C world


Last edited by Plain-old-Jeb on Sun Jan 04, 2004 4:21 am; edited 1 time in total
Back to top
View user's profile Send private message
Manco
Tux's lil' helper
Tux's lil' helper


Joined: 30 Apr 2003
Posts: 115
Location: Rotterdam the Netherlands

PostPosted: Sat Jan 03, 2004 4:12 pm    Post subject: Reply with quote

My first hunch would be bad ram or screwed up power, (or overheating cpu?)
_________________
Mr. White: The choice between doing ten years and taking out some stupid motherfucker, ain't no choice at all. But I ain't no madman.
Back to top
View user's profile Send private message
Wedge_
Advocate
Advocate


Joined: 08 Aug 2002
Posts: 3614
Location: Scotland

PostPosted: Sat Jan 03, 2004 4:19 pm    Post subject: Reply with quote

If you have an nForce2 and enable APIC (not ACPI) support in the kernel, you will often start getting frequent lockups. Turning APIC off should fix the problem (if this is what's causing it). Alternatively, there is a patch around for 2.6 kernels that seems to fix things. I can't find the patch itself atm, but it is included in love-sources if you want to try that instead.
_________________
Per Ardua Ad Astra
The Earth is the cradle of the mind, but we cannot live forever in a cradle - Konstantin E. Tsiolkovsky
Gentoo Radeon FAQ
Back to top
View user's profile Send private message
Plain-old-Jeb
n00b
n00b


Joined: 19 Dec 2003
Posts: 51
Location: My House

PostPosted: Sat Jan 03, 2004 11:58 pm    Post subject: Reply with quote

Thanks wedge the APIC bit fits exactly with my kernel config, looks like I may start using love sources then :twisted:

Edit: Decided against using love sources I'm now just passing noapic and nolapic on the boot command line :).
_________________
emerge -C world
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Sun Jan 04, 2004 5:04 am    Post subject: Reply with quote

Sounds like it will fix my problem... exact same processor & mobo. The problem is that these lockups are relatively rare on my box, so it'll be kinda hard to test. Thanks!
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Sun Jan 04, 2004 9:17 pm    Post subject: Reply with quote

It seems that I've hit a bit of a roadblock... when trying to compile the kernel without SMP:

Code:
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon " -C  kernel
make[1]: Entering directory `/usr/src/linux-2.4.22/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.22/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon   -nostdinc -iwithprefix include -DKBUILD_BASENAME=ksyms  -DEXPORT_SYMTAB -c ksyms.c
In file included from /usr/src/linux-2.4.22/include/linux/modversions.h:69,
                 from /usr/src/linux-2.4.22/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.22/include/linux/modules/dec_and_lock.ver:2:1: warning: "atomic_dec_and_lock" redefined
In file included from /usr/src/linux-2.4.22/include/linux/wait.h:16,
                 from /usr/src/linux-2.4.22/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.22/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.22/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.22/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.22/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.22/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.22/include/linux/spinlock.h:65:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.22/include/linux/modversions.h:132,
                 from /usr/src/linux-2.4.22/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.22/include/linux/modules/i386_ksyms.ver:90:1: warning: "cpu_data" redefined
In file included from /usr/src/linux-2.4.22/include/linux/prefetch.h:13,
                 from /usr/src/linux-2.4.22/include/linux/list.h:6,
                 from /usr/src/linux-2.4.22/include/linux/wait.h:14,
                 from /usr/src/linux-2.4.22/include/linux/fs.h:12,
                 from /usr/src/linux-2.4.22/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.22/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.22/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.22/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.22/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.22/include/asm/processor.h:81:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.22/include/linux/modversions.h:132,
                 from /usr/src/linux-2.4.22/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.22/include/linux/modules/i386_ksyms.ver:94:1: warning: "smp_num_cpus" redefined
In file included from /usr/src/linux-2.4.22/include/linux/sched.h:23,
                 from /usr/src/linux-2.4.22/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.22/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.22/include/linux/smp.h:80:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.22/include/linux/modversions.h:132,
                 from /usr/src/linux-2.4.22/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.22/include/linux/modules/i386_ksyms.ver:96:1: warning: "cpu_online_map" redefined
In file included from /usr/src/linux-2.4.22/include/linux/sched.h:23,
                 from /usr/src/linux-2.4.22/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.22/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.22/include/linux/smp.h:88:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.22/include/linux/modversions.h:132,
                 from /usr/src/linux-2.4.22/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.22/include/linux/modules/i386_ksyms.ver:110:1: warning: "smp_call_function" redefined
In file included from /usr/src/linux-2.4.22/include/linux/sched.h:23,
                 from /usr/src/linux-2.4.22/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.22/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.22/include/linux/smp.h:87:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.22/include/linux/modversions.h:168,
                 from /usr/src/linux-2.4.22/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.22/include/linux/modules/ksyms.ver:554:1: warning: "del_timer_sync" redefined
In file included from /usr/src/linux-2.4.22/include/linux/ext3_fs_sb.h:20,
                 from /usr/src/linux-2.4.22/include/linux/fs.h:712,
                 from /usr/src/linux-2.4.22/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.22/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.22/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.22/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.22/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.22/include/linux/timer.h:30:1: warning: this is the location of the previous definition
In file included from /usr/src/linux-2.4.22/include/linux/modversions.h:168,
                 from /usr/src/linux-2.4.22/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.22/include/linux/modules/ksyms.ver:636:1: warning: "set_cpus_allowed" redefined
In file included from /usr/src/linux-2.4.22/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.22/include/linux/slab.h:14,
                 from ksyms.c:13:
/usr/src/linux-2.4.22/include/linux/sched.h:159:1: warning: this is the location of the previous definition
In file included from ksyms.c:17:
/usr/src/linux-2.4.22/include/linux/kernel_stat.h: In function `kstat_irqs':
/usr/src/linux-2.4.22/include/linux/kernel_stat.h:62: `smp_num_cpus' undeclared (first use in this function)
/usr/src/linux-2.4.22/include/linux/kernel_stat.h:62: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.22/include/linux/kernel_stat.h:62: for each function it appears in.)
In file included from /usr/src/linux-2.4.22/include/linux/interrupt.h:46,
                 from ksyms.c:21:
/usr/src/linux-2.4.22/include/asm/hardirq.h:37:1: warning: "synchronize_irq" redefined
In file included from /usr/src/linux-2.4.22/include/linux/modversions.h:132,
                 from /usr/src/linux-2.4.22/include/linux/module.h:21,
                 from ksyms.c:14:
/usr/src/linux-2.4.22/include/linux/modules/i386_ksyms.ver:98:1: warning: this is the location of the previous definition
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.22/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22/kernel'
make: *** [_dir_kernel] Error 2

_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
Plain-old-Jeb
n00b
n00b


Joined: 19 Dec 2003
Posts: 51
Location: My House

PostPosted: Mon Jan 05, 2004 12:52 am    Post subject: Reply with quote

mmmm not sure about ur prob tactless but if it is true that the problem has been patched in lovesources why not try that you should still be able to compile wtih SMP support :).
_________________
emerge -C world
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Mon Jan 05, 2004 3:40 pm    Post subject: Reply with quote

Compilation error solved by upgrading to vanilla-2.4.23. SMP disabled, no sign of APIC left besides this line in .config:
CONFIG_X86_GOOD_APIC=y

Linux_logo does not report smp, nor does dmesg. Now lets see if this is stabler :)
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum