Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
When will my netbook's storage die if I put Gentoo on it ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 165
Location: Toronto, Canada

PostPosted: Mon Aug 05, 2019 6:55 pm    Post subject: When will my netbook's storage die if I put Gentoo on it ? Reply with quote

I have installed Gentoo on my netbook(4GB RAM, Celeron N3060, 64GB eMMC) , I have setup a tmpfs and excluded the following packaged from it:

webkit-gtk: 17980 seconds average for 1 merges
gcc: 15125 seconds average for 1 merges
llvm: 8369 seconds average for 3 merges
glibc: 2973 seconds average for 2 merges
cmake: 1157 seconds average for 2 merges
mesa: 1155 seconds average for 2 merges


How long my eMMC storage would last ? besides the compilations I am going to do some web browsing and some coding.

Wouldn't Arch linux be more fitting for a netbook like mine ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Mon Aug 05, 2019 7:00 pm    Post subject: Reply with quote

LegionOfHell,

I am about to retire a Acer One netbook that has the original Intel 8G SSD.
I did try to do most of the building on external rotating rust but not all of it.
That netbook is 11 years old, with a 1024x600 screen.

Avoid building on the eMMC if you can but its likely it will still be working when you retire it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6351

PostPosted: Mon Aug 05, 2019 8:00 pm    Post subject: Reply with quote

28300 hours on my netbook's cheap 128GB SSD and smartctl says there's no sign of wear.

And not for lack of use:
Code:
~ # qlop -mc chromium firefox webkit-gtk gcc glibc mesa
sys-libs/glibc: 48′17″ average for 35 merges
sys-devel/gcc: 7:41:02 average for 26 merges
media-libs/mesa: 47′37″ average for 67 merges
www-client/firefox: 2:03:30 average for 17 merges
net-libs/webkit-gtk: 10:59:23 average for 1 merge
www-client/chromium: 21:42:03 average for 11 merges
total: 565:49:57 for 157 merges
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Mon Aug 05, 2019 8:44 pm    Post subject: Reply with quote

Ant P.

Does smartctl give more detail?

Code:
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   000    Pre-fail  Always       -       0
  5 Reallocate_NAND_Blk_Cnt 0x0033   100   100   000    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       16643
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       2070
171 Program_Fail_Count      0x0032   100   100   000    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   100   100   000    Old_age   Always       -       0
173 Ave_Block-Erase_Count   0x0032   100   100   000    Old_age   Always       -       16
174 Unexpect_Power_Loss_Ct  0x0032   100   100   000    Old_age   Always       -       280
180 Unused_Reserve_NAND_Blk 0x0033   000   000   000    Pre-fail  Always       -       4403
183 SATA_Interfac_Downshift 0x0032   100   100   000    Old_age   Always       -       0
184 Error_Correction_Count  0x0032   100   100   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   066   056   000    Old_age   Always       -       34 (Min/Max 14/44)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   000    Old_age   Always       -       0
202 Percent_Lifetime_Used   0x0031   100   100   000    Pre-fail  Offline      -       0
206 Write_Error_Rate        0x000e   100   100   000    Old_age   Always       -       0
210 Success_RAIN_Recov_Cnt  0x0032   100   100   000    Old_age   Always       -       0
246 Total_Host_Sector_Write 0x0032   100   100   000    Old_age   Always       -       4842526417
247 Host_Program_Page_Count 0x0032   100   100   000    Old_age   Always       -       154227896
248 Bckgnd_Program_Page_Cnt 0x0032   100   100   000    Old_age   Always       -       360478373


The interesting ones are
Code:
173 Ave_Block-Erase_Count   0x0032   100   100   000    Old_age   Always       -       16
246 Total_Host_Sector_Write 0x0032   100   100   000    Old_age   Always       -       4842526417


I've been round the drive 16 times. It should be good to at least 10,000 times. and I've written 4842526417 blocks total.
This is a 512 GB Crucial/Micron MX100/MX200/M5x0/M600
I'm expecting it to outlast me :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6351

PostPosted: Tue Aug 06, 2019 1:01 am    Post subject: Reply with quote

Like I said, it's a *cheap* SSD. Or was considered one for the price/GB, when I got it ;)
Code:
Model Family:     JMicron based SSDs
Device Model:     KINGSTON SNV425S2128GB
Serial Number:    07NA10001082
Firmware Version: C091126a              # <-- 2009-11-26?

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   050    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  3 Unknown_JMF_Attribute   0x0007   100   100   050    Pre-fail  Always       -       0
  5 Reallocated_Sector_Ct   0x0013   100   100   050    Pre-fail  Always       -       0
  7 Unknown_JMF_Attribute   0x000b   100   100   050    Pre-fail  Always       -       0
  8 Unknown_JMF_Attribute   0x0005   100   100   050    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       28357
 10 Unknown_JMF_Attribute   0x0013   100   100   050    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0012   100   100   000    Old_age   Always       -       3968
168 SATA_Phy_Error_Count    0x0012   100   100   000    Old_age   Always       -       0
175 Bad_Cluster_Table_Count 0x0003   100   100   010    Pre-fail  Always       -       0
192 Unexpect_Power_Loss_Ct  0x0012   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   051   100   020    Old_age   Always       -       51 (Min/Max 23/51)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
240 Unknown_JMF_Attribute   0x0013   100   100   050    Pre-fail  Always       -       0
170 Bad_Block_Count         0x0003   100   100   010    Pre-fail  Always       -       2 383 21
173 Erase_Count             0x0012   100   100   000    Old_age   Always       -       5505 9410 6005


I picked up a backup SSD a few weeks ago in case any of my systems ever need it. Twice the capacity and less than a quarter the price of this one...
Back to top
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 165
Location: Toronto, Canada

PostPosted: Tue Aug 06, 2019 2:43 am    Post subject: Reply with quote

NeddySeagoon wrote:
LegionOfHell,

I am about to retire a Acer One netbook that has the original Intel 8G SSD.
I did try to do most of the building on external rotating rust but not all of it.
That netbook is 11 years old, with a 1024x600 screen.

Avoid building on the eMMC if you can but its likely it will still be working when you retire it.


How do you build on an external HDD ? can you point me to the relevant article ?



Many Thanks
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10456
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Aug 06, 2019 2:53 pm    Post subject: Reply with quote

The simplest way is to mount an external USB hard drive (or a SATA hard drive in a USB dock) at /var/tmp/portage. The location that Portage uses for temporary storage defaults is defined by the PORTAGE_TMPDIR variable, which can be set in make.conf. The default value is "/var/tmp" and Portage appends "/portage" to that. "man make.conf" has more details.

The more complex way is to set up a build host on a more powerful machine. There's a Wiki article about that.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 165
Location: Toronto, Canada

PostPosted: Tue Aug 06, 2019 7:37 pm    Post subject: Reply with quote

OK, this is what I am going to do: (tell me if there is a mistake):


https://paste.ubuntu.com/p/NwtdNtTDYh/
Back to top
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 165
Location: Toronto, Canada

PostPosted: Wed Aug 07, 2019 3:03 am    Post subject: Reply with quote

out of zram and tmpfs, which one do you prefer for /tmp /var/tmp and /var/tmp/portage ? and why ? what are the cons and pros of each one ?

for zram, where does the compression happen, inside RAM or on the disk ? does the data get compressed before getting into RAM ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Wed Aug 07, 2019 8:28 pm    Post subject: Reply with quote

LegionOfHell,

tmpfs should be faster as no CPU time is used for compression and subsequent decompression.
The compression and decompression take place in RAM.

You pastbin looks harmless. You need the correct content in portmp.conf, which you have not shared.
Try it. Its easy to tell if it works.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 165
Location: Toronto, Canada

PostPosted: Wed Aug 07, 2019 11:18 pm    Post subject: Reply with quote

is it a must to have a swap zram when adding /tmp to zram0 and /var/temp to zram1 ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum