-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 360610 b: refs/heads/master c: 68b86a2 h: refs/heads/master v: v3
- Loading branch information
Linus Torvalds
committed
Mar 3, 2013
1 parent
090a8c8
commit 68af5bd
Showing
1,337 changed files
with
57,764 additions
and
20,356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 41e9f3f71bc7a5d41a2b925cfdc0dc22a77f7d8c | ||
refs/heads/master: 68b86a25225d03f134f306caffc46df80906c3f8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
What: /sys/devices/platform/msi-laptop-pf/lcd_level | ||
Date: Oct 2006 | ||
KernelVersion: 2.6.19 | ||
Contact: "Lennart Poettering <mzxreary@0pointer.de>" | ||
Description: | ||
Screen brightness: contains a single integer in the range 0..8. | ||
|
||
What: /sys/devices/platform/msi-laptop-pf/auto_brightness | ||
Date: Oct 2006 | ||
KernelVersion: 2.6.19 | ||
Contact: "Lennart Poettering <mzxreary@0pointer.de>" | ||
Description: | ||
Enable automatic brightness control: contains either 0 or 1. If | ||
set to 1 the hardware adjusts the screen brightness | ||
automatically when the power cord is plugged/unplugged. | ||
|
||
What: /sys/devices/platform/msi-laptop-pf/wlan | ||
Date: Oct 2006 | ||
KernelVersion: 2.6.19 | ||
Contact: "Lennart Poettering <mzxreary@0pointer.de>" | ||
Description: | ||
WLAN subsystem enabled: contains either 0 or 1. | ||
|
||
What: /sys/devices/platform/msi-laptop-pf/bluetooth | ||
Date: Oct 2006 | ||
KernelVersion: 2.6.19 | ||
Contact: "Lennart Poettering <mzxreary@0pointer.de>" | ||
Description: | ||
Bluetooth subsystem enabled: contains either 0 or 1. Please | ||
note that this file is constantly 0 if no Bluetooth hardware is | ||
available. | ||
|
||
What: /sys/devices/platform/msi-laptop-pf/touchpad | ||
Date: Nov 2012 | ||
KernelVersion: 3.8 | ||
Contact: "Maxim Mikityanskiy <maxtram95@gmail.com>" | ||
Description: | ||
Contains either 0 or 1 and indicates if touchpad is turned on. | ||
Touchpad state can only be toggled by pressing Fn+F3. | ||
|
||
What: /sys/devices/platform/msi-laptop-pf/turbo_mode | ||
Date: Nov 2012 | ||
KernelVersion: 3.8 | ||
Contact: "Maxim Mikityanskiy <maxtram95@gmail.com>" | ||
Description: | ||
Contains either 0 or 1 and indicates if turbo mode is turned | ||
on. In turbo mode power LED is orange and processor is | ||
overclocked. Turbo mode is available only if charging. It is | ||
only possible to toggle turbo mode state by pressing Fn+F10, | ||
and there is a few seconds cooldown between subsequent toggles. | ||
If user presses Fn+F10 too frequent, turbo mode state is not | ||
changed. | ||
|
||
What: /sys/devices/platform/msi-laptop-pf/eco_mode | ||
Date: Nov 2012 | ||
KernelVersion: 3.8 | ||
Contact: "Maxim Mikityanskiy <maxtram95@gmail.com>" | ||
Description: | ||
Contains either 0 or 1 and indicates if ECO mode is turned on. | ||
In ECO mode power LED is green and userspace should do some | ||
powersaving actions. ECO mode is available only on battery | ||
power. ECO mode can only be toggled by pressing Fn+F10. | ||
|
||
What: /sys/devices/platform/msi-laptop-pf/turbo_cooldown | ||
Date: Nov 2012 | ||
KernelVersion: 3.8 | ||
Contact: "Maxim Mikityanskiy <maxtram95@gmail.com>" | ||
Description: | ||
Contains value in range 0..3: | ||
* 0 -> Turbo mode is off | ||
* 1 -> Turbo mode is on, cannot be turned off yet | ||
* 2 -> Turbo mode is off, cannot be turned on yet | ||
* 3 -> Turbo mode is on | ||
|
||
What: /sys/devices/platform/msi-laptop-pf/auto_fan | ||
Date: Nov 2012 | ||
KernelVersion: 3.8 | ||
Contact: "Maxim Mikityanskiy <maxtram95@gmail.com>" | ||
Description: | ||
Contains either 0 or 1 and indicates if fan speed is controlled | ||
automatically (1) or fan runs at maximal speed (0). Can be | ||
toggled in software. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
Guidance for writing policies | ||
============================= | ||
|
||
Try to keep transactionality out of it. The core is careful to | ||
avoid asking about anything that is migrating. This is a pain, but | ||
makes it easier to write the policies. | ||
|
||
Mappings are loaded into the policy at construction time. | ||
|
||
Every bio that is mapped by the target is referred to the policy. | ||
The policy can return a simple HIT or MISS or issue a migration. | ||
|
||
Currently there's no way for the policy to issue background work, | ||
e.g. to start writing back dirty blocks that are going to be evicte | ||
soon. | ||
|
||
Because we map bios, rather than requests it's easy for the policy | ||
to get fooled by many small bios. For this reason the core target | ||
issues periodic ticks to the policy. It's suggested that the policy | ||
doesn't update states (eg, hit counts) for a block more than once | ||
for each tick. The core ticks by watching bios complete, and so | ||
trying to see when the io scheduler has let the ios run. | ||
|
||
|
||
Overview of supplied cache replacement policies | ||
=============================================== | ||
|
||
multiqueue | ||
---------- | ||
|
||
This policy is the default. | ||
|
||
The multiqueue policy has two sets of 16 queues: one set for entries | ||
waiting for the cache and another one for those in the cache. | ||
Cache entries in the queues are aged based on logical time. Entry into | ||
the cache is based on variable thresholds and queue selection is based | ||
on hit count on entry. The policy aims to take different cache miss | ||
costs into account and to adjust to varying load patterns automatically. | ||
|
||
Message and constructor argument pairs are: | ||
'sequential_threshold <#nr_sequential_ios>' and | ||
'random_threshold <#nr_random_ios>'. | ||
|
||
The sequential threshold indicates the number of contiguous I/Os | ||
required before a stream is treated as sequential. The random threshold | ||
is the number of intervening non-contiguous I/Os that must be seen | ||
before the stream is treated as random again. | ||
|
||
The sequential and random thresholds default to 512 and 4 respectively. | ||
|
||
Large, sequential ios are probably better left on the origin device | ||
since spindles tend to have good bandwidth. The io_tracker counts | ||
contiguous I/Os to try to spot when the io is in one of these sequential | ||
modes. | ||
|
||
cleaner | ||
------- | ||
|
||
The cleaner writes back all dirty blocks in a cache to decommission it. | ||
|
||
Examples | ||
======== | ||
|
||
The syntax for a table is: | ||
cache <metadata dev> <cache dev> <origin dev> <block size> | ||
<#feature_args> [<feature arg>]* | ||
<policy> <#policy_args> [<policy arg>]* | ||
|
||
The syntax to send a message using the dmsetup command is: | ||
dmsetup message <mapped device> 0 sequential_threshold 1024 | ||
dmsetup message <mapped device> 0 random_threshold 8 | ||
|
||
Using dmsetup: | ||
dmsetup create blah --table "0 268435456 cache /dev/sdb /dev/sdc \ | ||
/dev/sdd 512 0 mq 4 sequential_threshold 1024 random_threshold 8" | ||
creates a 128GB large mapped device named 'blah' with the | ||
sequential threshold set to 1024 and the random_threshold set to 8. |
Oops, something went wrong.