Ik heb mijn server van een p60 naar een p200 geupgrade, nu wil ik de power management ondersteuning van het moederbord gebruiken om de harddisc te spindownen, maar FreeBSD lijkt alleen maar ondersteuning te hebben voor APM op laptops
Weet iemand hoe ik mijn harrdisk kan laten spindownen? En dan dus niet aankomen met: linux kan het gewoon, neem linux.
Kun je dat niet gewoon in het bios instellen ? Dat werkte vroeger onder dos altijd goed, gewoon in bios op 15 min zetten en in dos of ander OS hoef je niks in te stellen.
Mijn blog over het deployen van Ruby on Rails: RunRails.com
APM is niet alleen voor laptops!
Zoek in je kernel config file de regel die eruit ziet als
en verwijder uit die regel het 'disable'. Het wordt dus:
Compile de nieuwe kernel. Zet in je /etc/rc.conf de regel
en herstart. De APM functies werken nu.
Zoek in je kernel config file de regel die eruit ziet als
code:
1
| device apm0 at nexus? disable flags 0x20 |
en verwijder uit die regel het 'disable'. Het wordt dus:
code:
1
| device apm0 at nexus? flags 0x20 |
Compile de nieuwe kernel. Zet in je /etc/rc.conf de regel
code:
1
| apm_enable="YES" |
en herstart. De APM functies werken nu.
"I'd rather have a bottle in front of me than a frontal lobotomy."
hmm, nu je het zegt, ik had dat disable over het hoofd gezien
maar volgens LINT is dat alleen voor laptops. bios had ik al geprobeerd, maar dat werkt niet, ik zal even m'n kernel recompilen, is post het resultaat nog wel.
Nou nou... Het Handboek is heilig, he
. Dit staat er dan misschien toevallig net niet in, maar een heleboel andere dingen wel
.
"I'd rather have a bottle in front of me than a frontal lobotomy."
okee... geweldig dat apm, staat er onderaan de man van apm(4) dat harddisk spindown niet ondersteund wordt >:( iemand toevallig een tooltje om alsnog je harddisk te spindownen?
Feit is dat Linux daar gewoon beter in is (sorrie
).
't is altijd zo met dit soort snufjes. Op een èchte FreeBSD server krijgen de HD's sowieso niet eens de kans een pauze te nemen
't is altijd zo met dit soort snufjes. Op een èchte FreeBSD server krijgen de HD's sowieso niet eens de kans een pauze te nemen
Ask yourself if you are happy and then you cease to be.
Er was/is WEL een patch voor HD spindown AFAIK, ik heb zoiets
weleens op de freeBSD-mobile mailing list gezien.........ff zoeken.....
Ah, kijk hier is een thread waar de patch bijzit.....
http://docs.freebsd.org/m...11223.freebsd-mobile.html
weleens op de freeBSD-mobile mailing list gezien.........ff zoeken.....
Ah, kijk hier is een thread waar de patch bijzit.....
http://docs.freebsd.org/m...11223.freebsd-mobile.html
You don't need a parachute to go skydiving. You need a parachute to go skydiving twice.
Verwijderd
ik zou ook graag willen weten hoe je de aan/uitknop onder FreeBSD (ipv de laptop te laten uitschakelen qua stroom) eerst de bsd kan laten shutdownen en dat-ie daarna uitgaat.

Of in Linux.
Of OpenBSD
Of xxxx (behalve windows
)
Of in Linux.
Of OpenBSD
Of xxxx (behalve windows
@Deleon:
Als je in Linux APM in de kernel compileert, gaat die bij een shutdown meestal vanzelf al uit. Zo niet, dan kun je altijd nog de optie "use real mode APM call" inschakelen oid, zodat hij geforceerd down gaat.
Oh, en HD spindown bij Linux kun je configureren met hdparm (hdparm -S 120 /dev/hda zorgt ervoor dat je HD na 10 minuten inactiviteit down gaat)
Als je in Linux APM in de kernel compileert, gaat die bij een shutdown meestal vanzelf al uit. Zo niet, dan kun je altijd nog de optie "use real mode APM call" inschakelen oid, zodat hij geforceerd down gaat.
Oh, en HD spindown bij Linux kun je configureren met hdparm (hdparm -S 120 /dev/hda zorgt ervoor dat je HD na 10 minuten inactiviteit down gaat)
Ask yourself if you are happy and then you cease to be.
dat met die powerknop heb ik geen last van, dit speeltje moet 24/7 worden, maar dan wil ik niet dat m'n harddisk continu draait, ik zal die spindown patch es gaan proberen.
Op dezelfde manier als ik al gezegd heb (apm in de kernel compilen, zie instructies een eindje hierboven). Hierna kan je met 'shutdown -p now' de computer afsluiten + uitschakelen.Verwijderd schreef op 09 september 2002 @ 21:30:
ik zou ook graag willen weten hoe je de aan/uitknop onder FreeBSD (ipv de laptop te laten uitschakelen qua stroom) eerst de bsd kan laten shutdownen en dat-ie daarna uitgaat.
Of in Linux.
Of OpenBSD
Of xxxx (behalve windows)
"I'd rather have a bottle in front of me than a frontal lobotomy."
Verwijderd
Roadrunner <a.debont00@chello.nl> wrote:
> Hi,
>
> I just upgraded my server from a p60 to a p200, now I would like to use
> the power management options built on the motherboard, but freebsd
> doesn't seem to support power management for desktop computers, just for
> laptops. Does anyone here know how I should manage my harddisk to spin
> down if it's idle for a set timespan?
>
> Thanks in advance, Roadrunner.
Most of the time, if you set a hard drive timeout in the BIOS and then don't
even load APM in FreeBSD, the drives will spin down according to the BIOS
settings. I don't know of a way to control hard disk idling from within
FreeBSD.
BTW, for many FreeBSD configurations, spnning down the drive will either
never occur, or will occur so often that you use MORE power (not to mention
wear on the drive). That doesn't have to be the case, but you need to think
through your setup. On a default install, atrun(
is called by cron(
every five minutes, and cron calls are logged. That plus all of the normal
stuff that gets logged will cause the drive to be accessed fairly frequently
(at least the drive that holds /var).
Additionally, I find it annoying to have to wait for the drive to spin up
before a network service will respond, such as DHCP or WWW.
Anyway, good luck.
JN
> Hi,
>
> I just upgraded my server from a p60 to a p200, now I would like to use
> the power management options built on the motherboard, but freebsd
> doesn't seem to support power management for desktop computers, just for
> laptops. Does anyone here know how I should manage my harddisk to spin
> down if it's idle for a set timespan?
>
> Thanks in advance, Roadrunner.
Most of the time, if you set a hard drive timeout in the BIOS and then don't
even load APM in FreeBSD, the drives will spin down according to the BIOS
settings. I don't know of a way to control hard disk idling from within
FreeBSD.
BTW, for many FreeBSD configurations, spnning down the drive will either
never occur, or will occur so often that you use MORE power (not to mention
wear on the drive). That doesn't have to be the case, but you need to think
through your setup. On a default install, atrun(
every five minutes, and cron calls are logged. That plus all of the normal
stuff that gets logged will cause the drive to be accessed fairly frequently
(at least the drive that holds /var).
Additionally, I find it annoying to have to wait for the drive to spin up
before a network service will respond, such as DHCP or WWW.
Anyway, good luck.
JN
Verwijderd
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
A few months ago, there was a discussion on how to get laptop hard
drives to spin down, and there was talk that maybe Soren was going to
add it to atacontrol. Its been a while. He's busy :-)
So heres a patch to implement it, hopefully the 'Right Way' (tm), but
without the bells and whistles. Set hw.ata.suspend in /boot/loader.conf:
hw.ata.suspend=300. (Choose your preferred idle time, or course)
The default is not to even attempt to try setting
the idle timer on the drive. So it should be harmless if not used.
There are other wrinkles with altering
the syncer to behave a little better, but a really useful solution is
complicated.
Season to taste. I would appreciate knowing if it works on machines
with multiple drives, and especially any tricks people may have found
for getting hard drives to stay quiet. ssh always seems to wake mine
up.
Needless to say, it applies to -CURRENT, although I've been using
it for a while.
--
Robert Sexton - robert@kudra.com, Cincinnati OH, USA
Build a man a fire, and he's warm for the rest of the night. Set a man
on fire, and he's warm for the rest of his life - Terry Pratchett, "Jingo"
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ata.patch"
*** dev/ata/ata-disk.c.orig Fri Jun 8 07:24:13 2001
--- dev/ata/ata-disk.c Mon Jul 23 15:03:07 2001
***************
*** 85,93 ****
--- 85,95 ----
static int ata_dma = 1;
static int ata_wc = 0;
static int ata_tags = 0;
+ static int ata_suspend = 0;
TUNABLE_INT("hw.ata.ata_dma", &ata_dma);
TUNABLE_INT("hw.ata.wc", &ata_wc);
TUNABLE_INT("hw.ata.tags", &ata_tags);
+ TUNABLE_INT("hw.ata.suspend", &ata_suspend);
/* sysctl vars */
SYSCTL_DECL(_hw_ata);
***************
*** 97,102 ****
--- 99,106 ----
"ATA disk write caching");
SYSCTL_INT(_hw_ata, OID_AUTO, tags, CTLFLAG_RD, &ata_tags, 0,
"ATA disk tagged queuing support");
+ SYSCTL_INT(_hw_ata, OID_AUTO, suspend, CTLFLAG_RD, &ata_suspend, 0,
+ "ATA disk suspend timer");
/* defines */
#define AD_MAX_RETRIES 3
***************
*** 182,187 ****
--- 186,198 ----
0, 0, 0, 0, ATA_C_F_DIS_SRVIRQ, ATA_WAIT_INTR))
ata_printf(scp, device, "disabling service interrupt failed\n");
}
+
+ if ( ata_suspend > 0 ) {
+ /* attempt suspend mode. The drive uses increments of ten seconds */
+ if (ata_command(adp->controller, adp->unit, 0xe2,
+ 0, 0, 0, ata_suspend/10, 0, ATA_WAIT_INTR))
+ printf("ad%d: suspend mode failed\n", adp->lun);
+ }
devstat_add_entry(&adp->stats, "ad", adp->lun, DEV_BSIZE,
DEVSTAT_NO_ORDERED_TAGS,
--KsGdsel6WgEHnImy--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message
http://groups.google.com/....csie.NCTU.edu.tw&rnum=26
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
A few months ago, there was a discussion on how to get laptop hard
drives to spin down, and there was talk that maybe Soren was going to
add it to atacontrol. Its been a while. He's busy :-)
So heres a patch to implement it, hopefully the 'Right Way' (tm), but
without the bells and whistles. Set hw.ata.suspend in /boot/loader.conf:
hw.ata.suspend=300. (Choose your preferred idle time, or course)
The default is not to even attempt to try setting
the idle timer on the drive. So it should be harmless if not used.
There are other wrinkles with altering
the syncer to behave a little better, but a really useful solution is
complicated.
Season to taste. I would appreciate knowing if it works on machines
with multiple drives, and especially any tricks people may have found
for getting hard drives to stay quiet. ssh always seems to wake mine
up.
Needless to say, it applies to -CURRENT, although I've been using
it for a while.
--
Robert Sexton - robert@kudra.com, Cincinnati OH, USA
Build a man a fire, and he's warm for the rest of the night. Set a man
on fire, and he's warm for the rest of his life - Terry Pratchett, "Jingo"
--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ata.patch"
*** dev/ata/ata-disk.c.orig Fri Jun 8 07:24:13 2001
--- dev/ata/ata-disk.c Mon Jul 23 15:03:07 2001
***************
*** 85,93 ****
--- 85,95 ----
static int ata_dma = 1;
static int ata_wc = 0;
static int ata_tags = 0;
+ static int ata_suspend = 0;
TUNABLE_INT("hw.ata.ata_dma", &ata_dma);
TUNABLE_INT("hw.ata.wc", &ata_wc);
TUNABLE_INT("hw.ata.tags", &ata_tags);
+ TUNABLE_INT("hw.ata.suspend", &ata_suspend);
/* sysctl vars */
SYSCTL_DECL(_hw_ata);
***************
*** 97,102 ****
--- 99,106 ----
"ATA disk write caching");
SYSCTL_INT(_hw_ata, OID_AUTO, tags, CTLFLAG_RD, &ata_tags, 0,
"ATA disk tagged queuing support");
+ SYSCTL_INT(_hw_ata, OID_AUTO, suspend, CTLFLAG_RD, &ata_suspend, 0,
+ "ATA disk suspend timer");
/* defines */
#define AD_MAX_RETRIES 3
***************
*** 182,187 ****
--- 186,198 ----
0, 0, 0, 0, ATA_C_F_DIS_SRVIRQ, ATA_WAIT_INTR))
ata_printf(scp, device, "disabling service interrupt failed\n");
}
+
+ if ( ata_suspend > 0 ) {
+ /* attempt suspend mode. The drive uses increments of ten seconds */
+ if (ata_command(adp->controller, adp->unit, 0xe2,
+ 0, 0, 0, ata_suspend/10, 0, ATA_WAIT_INTR))
+ printf("ad%d: suspend mode failed\n", adp->lun);
+ }
devstat_add_entry(&adp->stats, "ad", adp->lun, DEV_BSIZE,
DEVSTAT_NO_ORDERED_TAGS,
--KsGdsel6WgEHnImy--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message
http://groups.google.com/....csie.NCTU.edu.tw&rnum=26
Dat met de bios heb ik al geprobeerd, maar dat werkt niet, ik heb mijn cron settings ook al aangepast. Deze patch had ik het dus over, die krijg ik nog niet werkend. wel handig om te weten dat ssh de harddisk weer laat spinnen, maar 's nachts heb ik niet zo veel server load hoor, over het algemeen geen ssh connecties, dus da's geen probleem.
ik heb /usr/src/sys opnieuw gecompiled en toen m'n kernel, nu werkt die patch wel
bedankt voor jullie hulp allemaal.
Da's fijn om te horen
. Hoe vaak gebeurt het nou dat hij weer opspint omdat er iets naar een log geschreven moet worden of zo?
"I'd rather have a bottle in front of me than a frontal lobotomy."
Verwijderd
Nee nee ik ben niet duidelijk genoeg geloof ikAVL schreef op 10 september 2002 @ 00:19:
[...]
Op dezelfde manier als ik al gezegd heb (apm in de kernel compilen, zie instructies een eindje hierboven). Hierna kan je met 'shutdown -p now' de computer afsluiten + uitschakelen.
Ik bedoel dus dat je ipv SHUTDOWN -P NOW invoert gewoon op de uitknop drukt en dat-ie dan netjes gaat shutdownen en uitschakelt.
Ik wil dus niet met ssh elke keer hoeven inloggen en shutdownen. Vooral voor andere gebruikers is't handig aangezien die'm dan ook uit kunnen zetten, en voor mij scheelt't weer wat in de RSI-klachten
Pagina: 1