Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
reiser4 finally working for me... or not
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Fri Oct 01, 2004 6:01 am    Post subject: reiser4 finally working for me... or not Reply with quote

reiser4 is no longer freezing my AMD64 system! I've built a kernel several times on reiser4, mounted and umounted several times, and now I'm using it for bittorrent download space. If anyone else has been having freezing trouble, try my patchset. It's based on vanilla 2.6.9-rc3 and includes:

Con's interactivty work, including staircase 8.2
elevator-switch-2004092100 (eg. "echo cfq > /sys/block/hda/queue/scheduler")
reiser4-related patches from 2.6.9-rc2-mm4

I didn't include reiser4-generic_acl-fix.patch because of compilation errors, and I omitted Con's VM work because it seems to behave strangely with a few memory hogs running.

EDIT: check this thread for newer versions of my patchset


Last edited by Jake on Wed Oct 06, 2004 1:54 am; edited 4 times in total
Back to top
View user's profile Send private message
c0balt
Guru
Guru


Joined: 04 Jul 2004
Posts: 441
Location: Germany

PostPosted: Fri Oct 01, 2004 9:37 pm    Post subject: Reply with quote

Man I wish I had those mad C Skillz, im trying to merge 2.6.8.1-ck8 with mm4-reiser4 patches for some days now o_0
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Sat Oct 02, 2004 12:04 am    Post subject: Reply with quote

I wouldn't say I have mad C skillz. My most recent attempt crashed and burned (despite compiling correctly) because I tried using both evelator-switch and cfq2. If you want help with failed hunks or compile-time errors, remove the numbers eight and nine and email me at maci8ejej9@msoe.edu.
Back to top
View user's profile Send private message
paulisdead
Guru
Guru


Joined: 10 Apr 2002
Posts: 510
Location: Seattle, WA

PostPosted: Sat Oct 02, 2004 5:46 am    Post subject: Reply with quote

Thanks for the patchset, I tried as many patchsets as I could but always had the lockup bug.

Unfortunately it doesn't look like I can mount reiser4 partitions with your patch, I see the following in dmesg

Code:
bad: scheduling while atomic!

Call Trace:<ffffffff803578be>{schedule+94} <ffffffff80357dc9>{preempt_schedule+57}
       <ffffffff802afcbd>{elv_register+109} <ffffffff8010b182>{init+226}
       <ffffffff8010fdbf>{child_rip+8} <ffffffff8010b0a0>{init+0}
       <ffffffff8010fdb7>{child_rip+0}
io scheduler noop registered
error in initcall at 0xffffffff802b6750: returned with preemption imbalance
io scheduler anticipatory registered
error in initcall at 0xffffffff802b9100: returned with preemption imbalance
io scheduler deadline registered
error in initcall at 0xffffffff802ba170: returned with preemption imbalance
io scheduler cfq registered
error in initcall at 0xffffffff802bb310: returned with preemption imbalance


but the system does run, however I see this when I try to mount a reiser4 partition made with reiser4progs-1.0.2_pre1.
Code:
deepthought lib # mount -t reiser4 /dev/hda5 /mnt/gentoo/
mount: wrong fs type, bad option, bad superblock on /dev/hda5,
       or too many mounted file systems


also the nvidia driver kept installing to /lib/modules/2.6.9-rc3-JM, and just copying the video folder and module over to the correct location didn't work, I had to symlink /lib/modules/2.6.9-rc3-JM to 2.6.9-rc3-JMn
_________________
"we should make it a law that all geeks have dates" - Linus
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Sat Oct 02, 2004 7:36 am    Post subject: Reply with quote

I didn't test with preempt enabled. My filesytems were made with 1.0.1 although I'm not sure it would make a difference. What's wrong with /lib/modules/2.6.9-rc3-JM? I set the extraversion to -rc3-JM. Normally I don't number my releases because I rarely make more than one.
Back to top
View user's profile Send private message
paulisdead
Guru
Guru


Joined: 10 Apr 2002
Posts: 510
Location: Seattle, WA

PostPosted: Sat Oct 02, 2004 2:59 pm    Post subject: Reply with quote

Jake wrote:
I didn't test with preempt enabled. My filesytems were made with 1.0.1 although I'm not sure it would make a difference. What's wrong with /lib/modules/2.6.9-rc3-JM? I set the extraversion to -rc3-JM. Normally I don't number my releases because I rarely make more than one.

I'll give it a shot without pre-empt enabled, then when I get home from work tonight.

The thing is the modules path for the kernel seems to be /lib/modules/2.6.9-rc3-JMn, but when I emerge the nvidia driver it installs into /lib/modules/2.6.9-rc3-JM, so modprobe and modules.autoload won't find the nvidia module. JMn also appears as the kernel version from uname -a. Installed it with the standard make && make modules_install. No big deal since it's fixable by making a symlink before emerging nvidia-kernel.
_________________
"we should make it a law that all geeks have dates" - Linus
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Sat Oct 02, 2004 10:53 pm    Post subject: Reply with quote

Now I'm confused about the JMn problem. Do you mean a literal 'n' or an integer? Here's what I get:
Code:
$ uname -a
Linux gentoo 2.6.9-rc3-JM #3 Thu Sep 30 20:00:33 CDT 2004 x86_64 12  GNU/Linux
$ cat /proc/version
Linux version 2.6.9-rc3-JM (root@gentoo) (gcc version 3.4.2 (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)) #3 Thu Sep 30 20:00:33 CDT 2004
$ ls /lib/modules/
2.6.9-rc3-JM
$ bzgrep EXTRAVERSION 2.6.9-rc3-JM.patch.bz2
-EXTRAVERSION = -rc3
+EXTRAVERSION = -rc3-JM

It looks 100% consistent to me.

EDIT: I now have ~12.5hrs of uptime with everything but /home on reiser4
Back to top
View user's profile Send private message
gentoo.
n00b
n00b


Joined: 02 Oct 2004
Posts: 2

PostPosted: Sat Oct 02, 2004 10:59 pm    Post subject: Reply with quote

That sounds nice, Reiser4 will be yummy! :-)
Back to top
View user's profile Send private message
paulisdead
Guru
Guru


Joined: 10 Apr 2002
Posts: 510
Location: Seattle, WA

PostPosted: Sun Oct 03, 2004 2:46 am    Post subject: Reply with quote

here, see for yourself
Code:
paulisdead@deepthought ~ $ uname -a
Linux deepthought 2.6.9-rc3-JMn #1 Fri Oct 1 22:15:04 PDT 2004 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux


Code:
paulisdead@deepthought ~ $ ls -d /lib/modules/2.6.9*
/lib/modules/2.6.9-rc3-JM  /lib/modules/2.6.9-rc3-JMn


still haven't had time to try without pre-empt on yet though.
_________________
"we should make it a law that all geeks have dates" - Linus
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Sun Oct 03, 2004 5:53 am    Post subject: Reply with quote

My previous release was a little rushed and used old versions of Con's patches because his patch site was down when I made it. I've made -JM2 featuring

reiser4 from 2.6.9-rc3-mm1
Con's scheduler patches w/staircase 8.9 from 2.6.9-rc3-ck1
mapped watermark from -ck1 (giving it a second chance with positive results so far)
switchable elevators from -mm1
CFQv2 from -mm1

EDIT: I have a patch that adds only reiser4 if anyone's interested

WARNING: I had one reboot and one lockup with -JM2. I'm not sure if it was the kernel or hardware problems. Now I'm running +reiser4 because Con's patches don't make a noticable difference, so they're not worth the risk.
Back to top
View user's profile Send private message
paulisdead
Guru
Guru


Joined: 10 Apr 2002
Posts: 510
Location: Seattle, WA

PostPosted: Mon Oct 04, 2004 5:07 am    Post subject: Reply with quote

Well, I still kept gettin errors mounting reiser4, and realized I needed large keys compiled into my kernel. So I could mount the stuff, but still hardlocked my system during big file copies. So I tried the patch for only reiser4, and that still hardlocked my system during large file copies. With just the reiser4 patch, preempt will not throw up those errors at bootup/in dmesg, but it's really unstable for me.
_________________
"we should make it a law that all geeks have dates" - Linus
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Wed Oct 06, 2004 1:59 am    Post subject: Reply with quote

After running stable for 2 days on +reiser4, I thought I'd convert /home to reiser4. No, I'm not crazy, I have backups. While converting (not exactly converting so much as recreating) I was getting lockups and severe corruption; it wasn't pretty.

EDIT: in case any x86 users find this- I used reiser4 on x86 for about 6 months and never had any unexpected reiser4-related problems
Back to top
View user's profile Send private message
luisfeser
Guru
Guru


Joined: 22 May 2004
Posts: 543
Location: /España/Toledo

PostPosted: Wed Oct 06, 2004 2:49 pm    Post subject: Reply with quote

Jake wrote:
EDIT: I have a patch that adds only reiser4 if anyone's interested

Thanks very much. I was looking for this. Now i have my kernel as i want, linux-2.6.9-rc3+reiser4+vesafb-tng :D

Could you explain how do you do this reiser4 patch??

Thanks :D
_________________
AMD Athlon XP-M 2500+ @2200MhHz|1GB DDR @400MHz Dual-Chanel|NVIDIA GeForce4 MX 420|SB Live 5.1|ADSL 512/128 Arsys
gentoo ~x86
Back to top
View user's profile Send private message
Jake
Veteran
Veteran


Joined: 31 Jul 2003
Posts: 1132

PostPosted: Thu Oct 07, 2004 2:19 am    Post subject: Reply with quote

luisfeser wrote:
Could you explain how do you do this reiser4 patch?

How do I make the patch?

"wget -r -np" the latest -mm broken-out
apply all reiser4-related patches (follow the series file) except reiser4-generic_acl-fix.patch
expect one failed hunk and apply it manually
comment out the line that causes compilation to fail

These procedures may change with future versions. I know it's safe to leave out the acl fix because I grepped the -mm patchset and determined the changes it makes are mm-specific. The failed hunk is fairly obvious. The line I suggest commenting out got commented out in vanilla-based -ck and -cko sources.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 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