[gentoo-user] Understanding fstrim...
Hi, >From the list I already have learned, that most of my concerns regarding the lifetime and maintainance to prolong it are without a reason. Nonetheless I am interested in the technique as such. My SSD (NVme/M2) is ext4 formatted and I found articles on the internet, that it is neither a good idea to activate the "discard" option at mount time nor to do a fstrim either at each file deletion no triggered by a cron job. Since there seems to be a "not so good point in time", when to do a fstrim, I think there must also be a point in time, when it is quite right to fstrim the mu SSD. fstrim clears blocks, which currently are not in use and which contents is != 0. The more unused blocks there are, which has a contents != 0, the lesser the count of blocks is, which the wear leveling algorithm can use for its purpose. That leads to the conclusion: to fstrim as often as possible, to keep the count of empty blocks as high as possible. BUT: Clearing blocks is an action, which includes writes to the cells of the SSD. Which is not that nice. Then, do a fstrim just in the moment, when there is no useable block left. Then the wear-leveling algorithm is already at its limits. Which is not that nice either. The truth - as so often - is somewhere in between. Is it possible to get an information from the SSD, how many blocks are in the state of "has contents" and "is unused" and how many blocks are in the state of "has *no* contents" and "is unused"? Assuming this information is available: Is it possible to find the sweat spot, when to fstrim SSD? Cheers! Meino
Re: [gentoo-user] OSS4
On Sun, Apr 12, 2020 at 10:16 PM Dale wrote: > > I wasn't sure about it either. I was hoping it would provide kernel > modules that could be used or something like that. Might be worth > installing and then doing a equery f alsa-oss and see just what it does > include. If it won't help, uninstall and hope for another option. Sure, why not. It installs a wrapper, a headings file and a library. > > Surely there is a way to do this, somewhere. :/ Maybe, unless it is really blocked by the kernel. Jorge
Re: [gentoo-user] OSS4
Jorge Almeida wrote: > On Sun, Apr 12, 2020 at 9:57 PM Dale wrote: >> Jorge Almeida wrote: >>> Is it possible to install it? >>> Every random page I could find that was gentoo+oss4 related seemed >>> old. I know the kernel does not support oss4 at all, any more than >>> portage does, but I don't know whether that means it is impossible to >>> install. >>> Anyone using it? >>> >>> Thanks >>> >>> Jorge Almeida >>> >>> >> >> Would this help?? >> >> >> root@fireball / # eix alsa-oss >> * media-libs/alsa-oss >> Available versions: 1.1.8 {static-libs ABI_MIPS="n32 n64 o32" >> ABI_RISCV="lp64 lp64d" ABI_S390="32 64" ABI_X86="32 64 x32"} >> Homepage:https://alsa-project.org/ >> Description: Advanced Linux Sound Architecture OSS >> compatibility layer >> > Nope. That's just Alsa imitating OSS, maybe to accommodate software > that expects OSS (I may be completely wrong, of course) > > Thanks > > Jorge > > I wasn't sure about it either. I was hoping it would provide kernel modules that could be used or something like that. Might be worth installing and then doing a equery f alsa-oss and see just what it does include. If it won't help, uninstall and hope for another option. Surely there is a way to do this, somewhere. :/ Dale :-) :-)
Re: [gentoo-user] OSS4
On Sun, Apr 12, 2020 at 9:57 PM Dale wrote: > > Jorge Almeida wrote: > > Is it possible to install it? > > Every random page I could find that was gentoo+oss4 related seemed > > old. I know the kernel does not support oss4 at all, any more than > > portage does, but I don't know whether that means it is impossible to > > install. > > Anyone using it? > > > > Thanks > > > > Jorge Almeida > > > > > > > Would this help?? > > > root@fireball / # eix alsa-oss > * media-libs/alsa-oss > Available versions: 1.1.8 {static-libs ABI_MIPS="n32 n64 o32" > ABI_RISCV="lp64 lp64d" ABI_S390="32 64" ABI_X86="32 64 x32"} > Homepage:https://alsa-project.org/ > Description: Advanced Linux Sound Architecture OSS > compatibility layer > Nope. That's just Alsa imitating OSS, maybe to accommodate software that expects OSS (I may be completely wrong, of course) Thanks Jorge
Re: [gentoo-user] OSS4
Jorge Almeida wrote: > Is it possible to install it? > Every random page I could find that was gentoo+oss4 related seemed > old. I know the kernel does not support oss4 at all, any more than > portage does, but I don't know whether that means it is impossible to > install. > Anyone using it? > > Thanks > > Jorge Almeida > > Would this help?? root@fireball / # eix alsa-oss * media-libs/alsa-oss Available versions: 1.1.8 {static-libs ABI_MIPS="n32 n64 o32" ABI_RISCV="lp64 lp64d" ABI_S390="32 64" ABI_X86="32 64 x32"} Homepage: https://alsa-project.org/ Description: Advanced Linux Sound Architecture OSS compatibility layer root@fireball / # Dale :-) :-)
[gentoo-user] OSS4
Is it possible to install it? Every random page I could find that was gentoo+oss4 related seemed old. I know the kernel does not support oss4 at all, any more than portage does, but I don't know whether that means it is impossible to install. Anyone using it? Thanks Jorge Almeida
[gentoo-user] Re: Confirm unsubscribe from gentoo-user@lists.gentoo.org
On 2020-04-11 4:35 p.m., gentoo-user+h...@lists.gentoo.org wrote: Somebody (and we hope it was you) has requested that the email address be removed from the list. To confirm you want to do this, please send a message to which can usually be done simply by replying to this message. The subject and the body of the message can be anything. After doing so, you should receive a reply informing you that the operation succeeded. If you do not want to do this, simply ignore this message. -- Ted Ozolins Cranbrook, BC