Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upbtrfs and TLP #128
btrfs and TLP #128
Comments
|
Hi, sorry to hear that. On physical hardware SATA ALPM is a probable cause (on battery power for the default config). I would change the config immediately after install
and check for SATA Errors – eventually recheck with more aggressive settings.
Maybe?! This would be a mystery. TLP doesn't touch any btrfs related settings. The only filesystem related settings are shown in tlp-stat output, "File System" section. Please show full
output before the first reboot. You may start TLP without reboot: tlp start |
|
Hey, thank you for your help. Luckily I had a backup.... I changed the config file and disabled SATA_LINKPWR (commeted it out), just to be sure.
I just started tlp like you suggested with edit1
if this helps... edit2
I doubt this has something to do with the btrfs problem....But if you know a solution it would just be nice! ;)
|
|
tp-smapi is not compatible with the X240. Remove it and the messages will disappear. Your install is not finished yet:
Please enable the services. See https://wiki.archlinux.org/index.php/TLP too. |
|
I forgot to mention it, but of course I started the systemd service as explained. After a couple of days I can say for sure that my system is still running fine, thanks to your help. I changed the arch wiki and added a part about btrfs. Maybe it helps other people. In short: I recommend for every btrfs user to do the discussed steps to avoid breaking the filesystem. Thank you and keep up the good work. |
|
You're welcome. |
|
Was there any extended research as to why this has happened? It seems like that from now on, everybody with btrfs disables power saving, just out of caution. In my case, the system power usage is about 4W higher and I am not sure whether I should turn the option back on. |
|
@m0nk33: Can you post the output of |
|
|
TLP can't fix this. It's a kernel issue. |
|
Does anybody know to what extent this applies to the Core 2 Duo era of laptops? |
|
Matthew Garrett - https://mjg59.dreamwidth.org/42156.html:
|
|
Note: this workaround is not required on Lenovo T400 (Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz) Tested via powertop (put everything from Bad into Good mode, while on AC not battery - does it matter? also did re-run
EDIT: my |
|
The article http://refugeeks.com/use-tlp-to-optimize-the-power-consumption-in-ubuntu/ tells us that Ubuntu disables ALPM by default because it causes data corruption on hard discs. This thread confirms it. Perhaps TLP should keep it safe as well and disable it by default? If not, warn the user. |
|
@Konfekt : are you affected or just asking? tlp-stat issues a warning message when it detects related SATA errors. |
|
I might have been affected since the BTRFS and to a lesser extent XFS-file systems of my hard disc were being continually corrupted. I was also extensively using hibernation. Since switching to EXT4 the problem did not reoccur. |
|
Did you check for SATA error warnings with
or
? |
|
Yes, no errors at all at any point. Then suddenly an error of the form |
|
its been advised to disable ssd optimization too |
I am using btrfs on archlinux 3.18.* and have massive issues with TLP. After installing TLP and rebooting it a few times I get random file corruptions until my filesystem breaks completely. I cant supply any logs since I needed to reinstall my system every time (maybe this could be done, but I am using LUKS so, after some file curruptions I cant open the container) but I am pretty sure its connected to TLP because it broke my system a few times. (Took me some time to figure out its TLP).
This error is reproducable maybe even in a VM.
Does anybody know anything about this issue?