-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
Sata ALPM has been safe since 4.15: https://www.spinics.net/lists/linux-btrfs/msg101833.html |
Thanks for the info. I get it that this statement comes from the btrfs dev David Sterba |
@linrunner hi, i use Arch Linux from btrfs now, i want to install tlp, at now, do i need add |
@nibazshab Why don't you just read the two posts above yours and also look at the corresponding FAQ entry? |
ok, in fact i've already read those and i just worry for my computer, if it bothers you i'm so sorry |
@nibazshab If you've already read the posts, what's your point then? The underlying kernel problem was solved 4.5 years(!) ago according to the BTRFS developer. I'm not going to give you an assurance for your system, which by the way I don't know. All known facts are publicly mentioned or linked in this issue. You will have to decide for yourself. Backups of important data are mandatory anyway. |
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?
The text was updated successfully, but these errors were encountered: