Thread View: news.software.nntp
4 messages
4 total messages
Started by Cor Bosman
Thu, 27 May 2004 09:19
Re: Diablo + FreeBSD 4.9 + md/vnconfig
Author: Cor Bosman
Date: Thu, 27 May 2004 09:19
Date: Thu, 27 May 2004 09:19
19 lines
1411 bytes
1411 bytes
Ben O'Hara <ben@plus.net.uk> writes:
>When Ive created a /dev/md0c we can get reads upto 70k/sec.
>Now, the problem!
>Creating a ram disk in the following method causes the machine to crash
>or diablo to be unable to read the dhistory file....anyone got any ideas
>on this? or example configs?
I use this:
set swfs = `grep swap /etc/fstab | grep -v '^#' | awk '{print $1}'`
mount_mfs -o noatime -i 1048576 -m 0 -s 3145728 $swfs /news/history
Make sure you copy the history file every once in a while.
Cor
Re: Diablo + FreeBSD 4.9 + md/vnconfig
Author: Dr.Ruud
Date: Thu, 27 May 2004 10:51
Date: Thu, 27 May 2004 10:51
21 lines
1596 bytes
1596 bytes
Cor Bosman:
> set swfs = `grep swap /etc/fstab | grep -v '^#' | awk '{print $1}'`
Alternatives:
grep -v '^[[:space:]]#' /etc/fstab | grep '[[:space:]]swap[[:space:]]' |
awk '{print $1}'
sed -n
'/^[[:space:]]*#/\!s/^\([^[:space:]]*\).*[[:<:]]swap[[:>:]].*$/\1/p'
/etc/fstab
--
Affijn, Ruud ` - ?
+ ` ? *
? `
? = `
Re: Diablo + FreeBSD 4.9 + md/vnconfig
Author: Dr.Ruud
Date: Thu, 27 May 2004 12:44
Date: Thu, 27 May 2004 12:44
27 lines
1785 bytes
1785 bytes
Dr.Ruud:
> Cor Bosman:
>> set swfs = `grep swap /etc/fstab | grep -v '^#' | awk '{print $1}'`
> Alternatives:
>
> grep -v '^[[:space:]]#' /etc/fstab | grep
> '[[:space:]]swap[[:space:]]' | awk '{print $1}'
>
> sed -n
> '/^[[:space:]]*#/\!s/^\([^[:space:]]*\).*[[:<:]]swap[[:>:]].*$/\1/p'
> /etc/fstab
Or:
awk '!/[:space:]*#/ && $3 == "swap" {print $1}' /etc/fstab
(and often a \ before the !)
--
Affijn, Ruud ` - ?
+ ` ? *
? `
? = `
Re: Diablo + FreeBSD 4.9 + md/vnconfig
Author: Dr.Ruud
Date: Thu, 27 May 2004 13:19
Date: Thu, 27 May 2004 13:19
19 lines
1720 bytes
1720 bytes
Dr.Ruud:
> awk '!/[:space:]*#/ && $3 == "swap" {print $1}' /etc/fstab
A ^-anchor is missing.
[:space:] does not catch tabs.
Better:
awk '!/^[[:blank:]]*#/ && $3 == "swap" {print $1}' /etc/fstab
--
Affijn, Ruud ` - ?
+ ` ? *
? `
? = `
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads