Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto Create a Reiser4 Partition
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
MG-Cloud
Apprentice
Apprentice


Joined: 28 Oct 2003
Posts: 200

PostPosted: Wed Apr 28, 2004 6:20 am    Post subject: Reply with quote

Hi all,

I would love to try reiser4 on my computer. I have a problem though - I only have one hard drive, and I'm not willing to spend the time to rebuild my system (at the moment - it's finals and essays time in school haha). My drive is set up (as per the older gentoo install guide) as /, /boot, and swap. My / partition is less than half full, and I want to convert it to reiser4.

I plan on:
1. backing up my ~/
2. Using resize_reiserfs to resize my /
3. Creating a reiser3 partition on the rest of the drive, and copying over all my files from / to the new partition (call it /bkp)
4. Make / reiser4
5. copy /bkp/* to /
6. Delete the /bkp partition
7. Use resizefs.reiser4 to resize / to fill its old space

Does this sound like a pretty good plan, or am I setting myself up for almost certain drive corruption/b0rkage? :P

Thanks =)
Back to top
View user's profile Send private message
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Wed Apr 28, 2004 7:21 am    Post subject: Reply with quote

A suggestion if I may. Please bear in mind, it's rather late for me so my mind may be a bit fuddled ;)
Copying your / to reiser4 may not be the best of ideas, especially with finals coming up. I'd suggest waiting at least until those are done first. Personal experience from years as a sysadmin makes me quezy at the thought of making a major change like that before something really mission critical. That aside, one thing you could try doing is this
1) Shrink the original / ( I'll call it /#1)
2) create /#2 and make it reiser3
3) use something like rsync to get everything over from /#1 -> /#2
4) *TEST the system* extensivly if possible. i.e. change your grub.conf so that /dev/hda3 (or whatever /#2 is on) is the param for root. Create all that under a new label in grub so that switching back is as simple as selecting Old Boot on the menu :)
5) Assuming the system works, boot into the new system where /#2 is the root param for your kernel, and format /#1 to reiser4
6) again sync /#2 -> /#1, create the initrd stuff if needed to a seperate file, make adjustments to grub.conf blahblahblah.
7) Spend some serious time testing
8 ) work on that for like a week (in reality probably a couple days but where I work, everything gets about a week of smoke testing if it's even slightly important) if all goes well THEN hose out /#2 and resize /#1 to fill the drive

somehow I feel like I'm missing something important... bah, it'll come to me later. Just take everything I just wrote and consider it carefully. You might be following the instructions of a half dead crazy person :lol:

Cheers,

Petyr Rahl
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 957
Location: Denmark

PostPosted: Thu Apr 29, 2004 1:58 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=167182
_________________
Sandberg Enterprises
Back to top
View user's profile Send private message
azlan
Guru
Guru


Joined: 11 Nov 2002
Posts: 381
Location: Seattle WA USA

PostPosted: Thu Apr 29, 2004 2:10 pm    Post subject: Reply with quote

I lost a hard drive, testing Reiser4 a few months ago. It was really fast, but I have been unable to find a partitioning tool that can read and reformat a reiser4 partition.

I would ty it again if someone could point to an version of fdisk or the like that can actually see a reiser4 partition.
_________________
there is no crazy, only violet and non violet..
Back to top
View user's profile Send private message
chipi
n00b
n00b


Joined: 05 Oct 2003
Posts: 62
Location: Israel

PostPosted: Thu Apr 29, 2004 6:34 pm    Post subject: Reply with quote

Has someone managed to patch the latest love-sources (2.6.6-rc3-love1)? all the patchs I saw was for 2.6.5...
Back to top
View user's profile Send private message
gaelic
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2003
Posts: 119
Location: Vienna, Austria, Europe, World, Solar System, Milky Way, Universe

PostPosted: Wed May 12, 2004 10:12 pm    Post subject: Reply with quote

just finished to setup reiser4 on my pc.

/boot: ext3
/: reiser4
/home: reiser4

patched vanilla 2.6.5-rc2

an its so fast :D

with /boot i'm waiting till reiser4 ist officially supportet by grub & mm-sources or love-sources, whatever
Back to top
View user's profile Send private message
theonlymcc
Apprentice
Apprentice


Joined: 16 Sep 2003
Posts: 274
Location: NC

PostPosted: Tue May 18, 2004 7:27 pm    Post subject: Reply with quote

I have tried using cp -a, cp -Rp, and other variations of cp. I tried tar'ing my / but that didn't work either. After changing my root param in grub and editing my fstab on the reiser4 partition, it still mounts reiserfs partition as root instead of reiser4. Am I not copying correctly? Help.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Thu May 20, 2004 3:59 pm    Post subject: Reply with quote

Yen wrote:
I'm using Reiser4 on my /usr/portage.. wow this thing is fast!!

TEST: tar xf linux-2.6.5.tar (I uncompressed it before doing the benchmark).

Untar of the Linux kernel 2.6.5 on ext3:

real 0m20.491s
user 0m0.189s
sys 0m2.321s


Untar of the Linux kernel 2.6.5 on Reiser4:

real 0m14.954s
user 0m0.235s
sys 0m4.541s


Untar of the Linux kernel 2.6.5 on ext2:

real 0m25.193s
user 0m0.194s
sys 0m1.625s


Untar of the Linux kernel 2.6.5 on XFS:

real 0m25.764s
user 0m0.244s
sys 0m3.027s


Untar of the Linux kernel 2.6.5 on JFS:

real 0m34.063s
user 0m0.212s
sys 0m2.112s

Untar of the Linux kernel 2.6.5 on ReiserFS (v3.6):

real 0m23.708s
user 0m0.213s
sys 0m4.290s


Untar of the Linux kernel 2.6.5 on VFAT (Yeah i know, stupid benchmark):

real 0m48.947s
user 0m0.962s
sys 0m6.687s


Very interesting to see your tests. Good to have something concrete rather than "this feels much faster".

However, inspired by your results I decided to move portage over to reiser4, but first decided to see how my system compared to yours on a similar test.

I copied /usr/portage/tmp accross to my new r4 partition and untared the zsh archive.

I found my test a bit SLOWER on r4. (only a few % but slower , repeated tests confirm)

I should emphasise that I do have long keys enabled on mine.

Anyone got similar results?

Maybe I should go for short keys if I want speed. :?
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Thu May 20, 2004 5:07 pm    Post subject: Reply with quote

Compare the following on new reiser4 part. , untarring linux-2.6.6.tar.bz2


Code:
df . && time tar -xjf lin*2.6.6* -C ../test
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc5             10000116   3039544   6960572  31% /usr/portage/tmp

real    0m37.669s
user    0m23.748s
sys     0m5.060s


with identical task on old rieser3 part.

Code:
df . && time tar -xjf lin*2.6.6* -C ../test
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc12             3892516   2107656   1784860  55% /mnt/reiser4

real    0m39.969s
user    0m24.162s
sys     0m6.608s


exerpt from mount:
Code:
/dev/hdc5 on /usr/portage/tmp type reiserfs (rw,noatime)
/dev/hdc12 on /mnt/reiser4 type reiser4 (rw,noatime)


Reiser4 is marginally SLOWER on this system, now using key_short.

Comments please.

:?
Back to top
View user's profile Send private message
thoffmeyer
Apprentice
Apprentice


Joined: 11 Apr 2004
Posts: 208
Location: GMT -5 Hours

PostPosted: Fri May 21, 2004 12:11 pm    Post subject: Reply with quote

Reiser4 for what I have tested is pretty nice and very stable. I have had no problems yet, but it is very stable. I cant wait untill the final release.
_________________
Conrad Guide, Current Maintainer

Join us on IRC
Server: irc.freenode.net
Channel: #conrad
Back to top
View user's profile Send private message
AstralStorm
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 80
Location: /dev/null

PostPosted: Fri May 21, 2004 2:31 pm    Post subject: Reply with quote

Where were you copying from? That ReiserFS partition?
No doubt it will get better results then.

Here, Reiser4 > ReiserFS > ext3 writeback > XFS
Tested with ~1GiB file copying & portage tree unpacking (with metadata: ~50MiB tar.bz2 of small files)
(from VFAT partition)

With large file XFS is nearly the same as ReiserFS (about 2 sec difference, XFS faster), but much slower with small files.
Can't post timings - reinstalling now only on Reiser4, no space for another partition and haven't stored the results.
All tests were under 2.6.6-love4.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Fri May 21, 2004 3:10 pm    Post subject: Reply with quote

Interesting: here are some thorough tests results by Grant Miner

Quote:
The first item number is time, in seconds, to complete the test (lower
is better). The second number is CPU use percentage (lower is better).

reiser4 171.28s, 30%CPU (1.0000x time; 1.0x CPU)
reiserfs 302.53s, 16%CPU (1.7663x time; 0.53x CPU)
ext3 319.71s, 11%CPU(1.8666x time; 0.36x CPU)
xfs 429.79s, 13%CPU (2.5093x time; 0.43x CPU)
jfs 470.88s, 6%CPU (2.7492x time 0.20x CPU)

What's interesting:
* ext3's syncs tended to take the longest 10 seconds, except
* JFS took a whopping 38.18s on its final sync
* xfs used more CPU than ext3 but was slower than ext3
* reiser4 had highest throughput and most CPU usage
* jfs had lowest throughput and least CPU usage
* total performance of course depends on how IO or CPU bound your task is


These test results are reported in more detail on the following link:
http://kerneltrap.org/node/view/715

Even more detail result tables here: http://www.namesys.com/benchmarks.html#mongo.2003.07.10


Well the reiser3 results contradic my findings above.

Anyone got any ideas why?

Thx. 8)
Back to top
View user's profile Send private message
CuttEdge
n00b
n00b


Joined: 30 Jun 2004
Posts: 1

PostPosted: Wed Jun 30, 2004 9:49 pm    Post subject: x86_64 patches for 2.6.7-mm4 and Redeeman5 Reply with quote

x86_64 uses;

For x86_64 users, I had to apply the following patches to linux-2.6.7-mm4-Redeeman5 for the kernel to compile. It appears that none of these items removed are used as far as I can tell. My RAID 5 is rebuilding now, and reiserfs 4 appears to be working correctly. I am getting dbench numbers of
150 MB/s with 60 clients with R5 (4 disks) in the middle of a resync.

-----------------------------------------------------------------------------------------------------------------------------------
--- linux-2.6.7/include/asm-x86_64/bootsetup.h.orig 2004-06-30 10:34:30.051691656 -0700
+++ linux-2.6.7/include/asm-x86_64/bootsetup.h 2004-06-30 10:38:50.067163296 -0700
@@ -29,6 +29,8 @@
#define DISK80_SIGNATURE (*(unsigned int*) (PARAM+DISK80_SIG_BUFFER))
#define EDD_NR (*(unsigned char *) (PARAM+EDDNR))
#define EDD_BUF ((struct edd_info *) (PARAM+EDDBUF))
+#define EDD_MBR_SIG_NR (*(unsigned char *) (PARAM+EDD_MBR_SIG_NR_BUF))
+#define EDD_MBR_SIGNATURE ((unsigned int *) (PARAM+EDD_MBR_SIG_BUF))
#define COMMAND_LINE saved_command_line

#define RAMDISK_IMAGE_START_MASK 0x07FF
------------------------------------------------------------------------------------------------------------------------------------
--- linux-2.6.7/arch/x86_64/kernel/domain.c.orig 2004-06-30 11:35:19.665865968 -0700
+++ linux-2.6.7/arch/x86_64/kernel/domain.c 2004-06-30 11:37:39.854554048 -0700
@@ -21,10 +21,6 @@
struct sched_domain *phys_domain = &per_cpu(phys_domains, i);

*cpu_domain = SD_SIBLING_INIT;
- /* Disable SMT NICE for CMP */
- /* RED-PEN use a generic flag */
- if (cpu_data[i].x86_vendor == X86_VENDOR_AMD)
- cpu_domain->flags &= ~SD_SHARE_CPUPOWER;
cpu_domain->span = cpu_sibling_map[i];
cpu_domain->parent = phys_domain;
cpu_domain->groups = &sched_group_cpus[i];
-------------------------------------------------------------------------------------------------------------------------------------
--- linux-2.6.7/fs/reiser4/coord.c.orig 2004-06-24 17:49:05.306341272 -0700
+++ linux-2.6.7/fs/reiser4/coord.c 2004-06-24 18:55:00.247098888 -0700
@@ -582,77 +582,6 @@
}
}

-#if REISER4_DEBUG
-#define DEBUG_COORD_FIELDS (sizeof(c1->plug_v) + sizeof(c1->body_v))
-#else
-#define DEBUG_COORD_FIELDS (0)
-#endif
-
-reiser4_internal int
-coords_equal(const coord_t * c1, const coord_t * c2)
-{
- assert("nikita-2840", c1 != NULL);
- assert("nikita-2841", c2 != NULL);
-
- /* assertion to track changes in coord_t */
- cassert(sizeof(*c1) == sizeof(c1->node) +
- sizeof(c1->item_pos) +
- sizeof(c1->unit_pos) +
- sizeof(c1->iplugid) +
- sizeof(c1->between) +
- sizeof(c1->pad) +
- sizeof(c1->offset) +
- DEBUG_COORD_FIELDS);
- return
- c1->node == c2->node &&
- c1->item_pos == c2->item_pos &&
- c1->unit_pos == c2->unit_pos &&
- c1->between == c2->between;
-}
-
-/* Returns true if two coordinates are consider equal. Coordinates that are between units
- or items are considered equal. */
-/* Audited by: green(2002.06.15) */
-reiser4_internal int
-coord_eq(const coord_t * c1, const coord_t * c2)
-{
- assert("nikita-1807", c1 != NULL);
- assert("nikita-1808", c2 != NULL);
-
- if (coords_equal(c1, c2)) {
- return 1;
- }
- if (c1->node != c2->node) {
- return 0;
- }
-
- switch (c1->between) {
- case INVALID_COORD:
- case EMPTY_NODE:
- case AT_UNIT:
- return 0;
-
- case BEFORE_UNIT:
- /* c2 must be after the previous unit. */
- return (c1->item_pos == c2->item_pos && c2->between == AFTER_UNIT && c2->unit_pos == c1->unit_pos - 1);
-
- case AFTER_UNIT:
- /* c2 must be before the next unit. */
- return (c1->item_pos == c2->item_pos && c2->between == BEFORE_UNIT && c2->unit_pos == c1->unit_pos + 1);
-
- case BEFORE_ITEM:
- /* c2 must be after the previous item. */
- return (c1->item_pos == c2->item_pos - 1 && c2->between == AFTER_ITEM);
-
- case AFTER_ITEM:
- /* c2 must be before the next item. */
- return (c1->item_pos == c2->item_pos + 1 && c2->between == BEFORE_ITEM);
- }
-
- impossible("jmacd-9906", "unreachable");
- return 0;
-}
-
/* If coord_is_after_rightmost return NCOORD_ON_THE_RIGHT, if coord_is_after_leftmost
return NCOORD_ON_THE_LEFT, otherwise return NCOORD_INSIDE. */
/* Audited by: green(2002.06.15) */
-------------------------------------------------------------------------------------------------------------------------------------

More benchmarks when RAID 5 syncs. :)

peace, Scott
Back to top
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Sat Nov 06, 2004 3:01 am    Post subject: Reply with quote

Nice thread :) I was dying to test reiser4, but I never could find a patches for my kernel (2.6.7-hardened-r10) then I saw the light http://kem.p.lodz.pl/~peter/cko/reiser4/ .

Anyway I can't say anything yet, except that I have a little issue. I can't seem to get notail to work with reiser4. I can't seem to mount reiser4 with notail option. Anyway any input on this?

P.S. Samba works a lot faster off reiser4 (I will benchmark once I have more time).

-Edit- I just noticed reiser4 ate 11gig off my 99gig partition -_-
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1176

PostPosted: Thu Nov 11, 2004 12:58 am    Post subject: Reply with quote

What should I use in /etc/fstab ?
Whould I use some flags like noatime, notail, or so?

Code:
/dev/hda5       /mnt/proba      reiser4         noatime,notail  1 1


or what?
Back to top
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Thu Nov 11, 2004 1:03 am    Post subject: Reply with quote

tnt wrote:
What should I use in /etc/fstab ?
Whould I use some flags like noatime, notail, or so?

Code:
/dev/hda5       /mnt/proba      reiser4         noatime,notail  1 1


or what?


My entry:
Code:
/dev/hdg3               /stuff          reiser4         noatime                 0 0


As I said in my last post it seems you can't use notail option with reiser4 (correct me if I am wrong) I tried using notail and I got:
Code:
reiser4[mount(10590)]: parse_options (fs/reiser4/vfs_ops.c:837)[nikita-2307]:
WARNING: Unrecognized option: "notail"


Anyway been running reiser4 for 4 days on my server which stress tested it...seems stable to me.
_________________
[ My sites ]: UnixTutorials : AniFIND : AnimeYume
Back to top
View user's profile Send private message
aquadog
n00b
n00b


Joined: 28 Dec 2002
Posts: 28
Location: Johannesburg, South Africa

PostPosted: Thu Nov 11, 2004 7:22 am    Post subject: Reply with quote

Code:
aquadog@gentoo ~ $ mount
/dev/hda6 on / type reiser4 (rw,noatime,notail)



works here...
Back to top
View user's profile Send private message
Forse
Apprentice
Apprentice


Joined: 26 Dec 2002
Posts: 260
Location: /dev/random

PostPosted: Thu Nov 11, 2004 8:54 am    Post subject: Reply with quote

aquadog wrote:
Code:
aquadog@gentoo ~ $ mount
/dev/hda6 on / type reiser4 (rw,noatime,notail)



works here...


What kernel (aka sources) are u using and what version of reiser4 patches?
_________________
[ My sites ]: UnixTutorials : AniFIND : AnimeYume
Back to top
View user's profile Send private message
aquadog
n00b
n00b


Joined: 28 Dec 2002
Posts: 28
Location: Johannesburg, South Africa

PostPosted: Thu Nov 11, 2004 10:12 am    Post subject: Reply with quote

im currently using the latest (2.6.9-cko3)CKO patchset:

http://kem.p.lodz.pl/~peter/cko/
Back to top
View user's profile Send private message
tnt
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1176

PostPosted: Thu Nov 11, 2004 10:59 am    Post subject: Reply with quote

aquadog wrote:
Code:
aquadog@gentoo ~ $ mount
/dev/hda6 on / type reiser4 (rw,noatime,notail)



works here...


And what is your fstab entry for reiser4? How to mount it with 'notail'? When I add 'notail' to my fstab, I can't mount that partition.
Back to top
View user's profile Send private message
aquadog
n00b
n00b


Joined: 28 Dec 2002
Posts: 28
Location: Johannesburg, South Africa

PostPosted: Fri Nov 19, 2004 9:06 am    Post subject: Reply with quote

my fstab entry is just a standard entry with notail and noatime added into the options.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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