Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ext3 relatime won't boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ChrisPage
n00b
n00b


Joined: 09 Aug 2007
Posts: 5

PostPosted: Thu Aug 09, 2007 2:57 pm    Post subject: ext3 relatime won't boot Reply with quote

If I put

/dev/hda3 / ext3 relatime 0 1

I can't boot. It ask for the admin passwd or Contrl-D

But once boot I can mount /dev/hda3 to /mnt/test with relatime.


I can even add

/dev/hda3 /mnt/test relatime

to /etc/fstab and it will mount.

Am I missing something?

I'm running 2.6.21-r4
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Thu Aug 09, 2007 3:05 pm    Post subject: Reply with quote

I may be completely wrong but AFAIK realtime isn't currently a mount option. "man mount"
_________________
- Failure is not an option. It's bundled with your software.


Last edited by Dan on Thu Aug 09, 2007 3:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
Cheyenne
n00b
n00b


Joined: 05 Jan 2005
Posts: 33

PostPosted: Thu Aug 09, 2007 3:07 pm    Post subject: Reply with quote

I believe that it's a kernel option, however mount will have to support the keyword to turn it on
Back to top
View user's profile Send private message
Dan
Veteran
Veteran


Joined: 25 Oct 2005
Posts: 1302

PostPosted: Thu Aug 09, 2007 3:10 pm    Post subject: Reply with quote

sorry i read realtime not as it is relatime
_________________
- Failure is not an option. It's bundled with your software.
Back to top
View user's profile Send private message
ChrisPage
n00b
n00b


Joined: 09 Aug 2007
Posts: 5

PostPosted: Thu Aug 09, 2007 3:11 pm    Post subject: Reply with quote

# mount
...
....
/dev/hda3 on /mnt/test type ext3 (rw,relatime)

It is (I guess) I works for me. But 'man mount' doesn't list it as an option. So I don't know what the deal is.

read this. (This is what got me trying).

http://kerneltrap.org/node/14148
Back to top
View user's profile Send private message
Cheyenne
n00b
n00b


Joined: 05 Jan 2005
Posts: 33

PostPosted: Fri Aug 10, 2007 1:42 pm    Post subject: Reply with quote

I get an error from mount about an invalid option..
Back to top
View user's profile Send private message
ChrisPage
n00b
n00b


Joined: 09 Aug 2007
Posts: 5

PostPosted: Fri Aug 10, 2007 1:50 pm    Post subject: Reply with quote

highwind ~ # mount -V
mount: mount-2.12r

highwind ~ # mount -vvvv -t ext3 -o relatime /dev/hda3 /mnt/test/
/dev/hda3 on /mnt/test type ext3 (rw,relatime)
Back to top
View user's profile Send private message
Waltarro
n00b
n00b


Joined: 21 Nov 2004
Posts: 16
Location: Arizona, US

PostPosted: Sat Aug 11, 2007 5:48 am    Post subject: Reply with quote

I think the option you're looking for is noatime, I'm going
to take a guess and say that you're thinking about the ingo's
relatime kernel patch that was discussed on kerneltrap earlier
this week.

I was curious as well and patched the 2.6.21-gentoo-r4
kernel myself. It doesn't apply cleanly but is pretty easy to fix.
Anyway Cheyenne is right, if that patch was added it would be
a kernel option not a mount option.
Back to top
View user's profile Send private message
Cheyenne
n00b
n00b


Joined: 05 Jan 2005
Posts: 33

PostPosted: Mon Aug 13, 2007 1:37 pm    Post subject: Reply with quote

Quote:

~ $ mount -V
mount: mount-2.12r

~ # mount -vvvv -t jfs -o relatime /dev/sda6 /opt
mount: wrong fs type, bad option, bad superblock on /dev/sda6,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

~ # mount -vvvv -t jfs /dev/sda6 /opt
/dev/sda6 on /opt type jfs (rw)
~ #


jfs vs ext3 issue?

Same version of mount -- and I'm running the vanilla sources at 2.6.23-rc1, and checking the source tree relatime is in there.

I might still be missing something really stupid..
Back to top
View user's profile Send private message
Cheyenne
n00b
n00b


Joined: 05 Jan 2005
Posts: 33

PostPosted: Mon Aug 13, 2007 1:40 pm    Post subject: Reply with quote

Waltarro wrote:

Anyway Cheyenne is right, if that patch was added it would be
a kernel option not a mount option.


Well to a point..

The relatime is a kernel option in that the kernel is the one doing the atime vs noatime vs relatime work itself. However the mount command is what is used to tell the kernel which option to use.
Back to top
View user's profile Send private message
Waltarro
n00b
n00b


Joined: 21 Nov 2004
Posts: 16
Location: Arizona, US

PostPosted: Tue Aug 14, 2007 5:51 am    Post subject: Reply with quote

You're probably right I was thinking of this http://people.redhat.com/mingo/relatime-patches/improve-relatime.patch
I'll also add after running with this for a few days its a nice addition to the kernel IO speed wise.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Thu Nov 15, 2007 1:39 pm    Post subject: Reply with quote

It's time to bump this thread. I was just reading LWN and saw more mention of relatime, so thought I'd check back.

Support for relatime has been in the kernel since 2.6.20, and improvements are due in 2.6.24. But it requires support in userspace, in the mount command, part of sys-apps/util-linux. It looks like the patch was put into util-linux-2.13, and I just did an "ebuild /usr/portage/sys-apps/util-linux/util-linux-2.13-r2.ebuild compile", then did a "strings mount | grep atime" and find "noatime", "nodiratime", and "norelatime". Incidentally, the same strings check against the stable mount command does not have the "norelatime" or "relatime" option. Since the result of strings is "norelatime", but I understood the kernel option to be "relatime" I'm not sure what's happening here. Running "man ./mount.8" shows the option as "relatime", so perhaps it's just a "constant optimization" that gcc knows it can find "*atime" inside "no*atime" for option comparison purposes, for all of the atime options.

So it looks like you need to be running util-2.13+ if you want "relatime" goodness. I plan to try this on my laptop a bit later.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Tue Jan 01, 2008 4:15 am    Post subject: Reply with quote

I finally got around to setting "=sys-apps/util-linux-2.13-r2 ~x86" in /etc/portage/package.keywords, and tried it out.

Seems to work just fine, accepts "relatime" in /etc/fstab, even for root.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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