Re: [gentoo-user] gentoo on SSD

2017-09-27 Thread Stefano Crocco
On Wednesday, 27 September 2017 17:04:53 CEST Stefan G. Weichinger wrote:
> aside from that you might want to specify a different IO scheduler for
> the SSD, I do that via udev rules like:
> 
> # 60-sched.rules
> # set deadline scheduler for non-rotating disks
> ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0",
> ATTR{queue/scheduler}="deadline"
> 
> # set cfq scheduler for rotating disks
> ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1",
> ATTR{queue/scheduler}="cfq"
> 
> -
> 
> and I have a systemd-timer for running fstrim now and then

Thanks for the hint.

Stefano



Re: [gentoo-user] gentoo on SSD

2017-09-27 Thread Stefan G. Weichinger


aside from that you might want to specify a different IO scheduler for 
the SSD, I do that via udev rules like:


# 60-sched.rules
# set deadline scheduler for non-rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", 
ATTR{queue/scheduler}="deadline"


# set cfq scheduler for rotating disks
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", 
ATTR{queue/scheduler}="cfq"


-

and I have a systemd-timer for running fstrim now and then



Re: [gentoo-user] gentoo on SSD

2017-09-23 Thread Stefano Crocco
On Saturday, 23 September 2017 21:27:45 CEST Canek Peláez Valdés wrote:
> On Sat, Sep 23, 2017 at 2:04 PM, Stefano Crocco 
> 
> wrote:
> > Hello to everyone,
> > I just bought a 250 GB SSD and I'm planning to install Gentoo on it. I've
> 
> read
> 
> > the Gentoo Wiki page on this and searched Google for hints on this, but
> 
> since
> 
> > I found out that much information was either contradictory or outdated,
> 
> I'm
> 
> > asking anyone with first-hand experience on this for advice.
> > 
> > My system is as follows:
> > 
> > - 250GB SSD
> > - 1TB HDD
> > - 16GB RAM
> > 
> > I'm planning to partition the SSD this way:
> > 
> > - 100 GB -> / (on my current system, / is about 70GB)
> > - 100 GB -> /home
> > - 16 GB -> swap (mainly for hibernation)
> > - 200 MB -> /boot
> > 
> > /var/tmp/portage should go into a tmpfs (12GB).
> > 
> > I've read that someone suggested putting also /tmp on a tmpfs. Right now,
> 
> on
> 
> > my system /tmp is less than 100 MB, so I believe this should cause no
> > problems, but is it necessary?
> > 
> > Large files, such as Steam games and maybe distfiles should instead go on
> 
> the
> 
> > 1TB HDD.
> > 
> > I have some doubts about the swap partition. With 16 GB of RAM I shouldn't
> > usually need swap except for hibernating (that's the reason I'm putting
> 
> it on
> 
> > the SSD); however, I fear that compiling some large packages could fill
> 
> all
> 
> > that space. Would it be bad to have the swap partition on the SSD used
> 
> this
> 
> > way every now and then? Should I create another swap partition on the HDD
> 
> and
> 
> > give it higher priority?
> > 
> > What do you think? Do you have any advice on how to best set up such a
> 
> system?
> 
> I use a similar setup. Several top-level directories in my $HOME are bind
> mounts to a large mechanical drive. My swap (16GB) is on that drive also.
> I've found that 100MB is enough for the EFI /boot partition (but I clean
> old kernels immediately after updating).
> 
> For the /tmp I use tmpfs (I use the size=100% option), and then in
> /etc/portage/make.conf I have:
> 
> PORTAGE_TMPDIR="/tmp"
> 
> This way I fully use /tmp when compiling large packages, and don't wear
> down my SSD.
> 
> Regards.
> --
> Dr. Canek Peláez Valdés
> Profesor de Carrera Asociado C
> Departamento de Matemáticas
> Facultad de Ciencias
> Universidad Nacional Autónoma de México

Thanks for the information

Stefano



Re: [gentoo-user] gentoo on SSD

2017-09-23 Thread Canek Peláez Valdés
On Sat, Sep 23, 2017 at 2:04 PM, Stefano Crocco 
wrote:
>
> Hello to everyone,
> I just bought a 250 GB SSD and I'm planning to install Gentoo on it. I've
read
> the Gentoo Wiki page on this and searched Google for hints on this, but
since
> I found out that much information was either contradictory or outdated,
I'm
> asking anyone with first-hand experience on this for advice.
>
> My system is as follows:
>
> - 250GB SSD
> - 1TB HDD
> - 16GB RAM
>
> I'm planning to partition the SSD this way:
>
> - 100 GB -> / (on my current system, / is about 70GB)
> - 100 GB -> /home
> - 16 GB -> swap (mainly for hibernation)
> - 200 MB -> /boot
>
> /var/tmp/portage should go into a tmpfs (12GB).
>
> I've read that someone suggested putting also /tmp on a tmpfs. Right now,
on
> my system /tmp is less than 100 MB, so I believe this should cause no
> problems, but is it necessary?
>
> Large files, such as Steam games and maybe distfiles should instead go on
the
> 1TB HDD.
>
> I have some doubts about the swap partition. With 16 GB of RAM I shouldn't
> usually need swap except for hibernating (that's the reason I'm putting
it on
> the SSD); however, I fear that compiling some large packages could fill
all
> that space. Would it be bad to have the swap partition on the SSD used
this
> way every now and then? Should I create another swap partition on the HDD
and
> give it higher priority?
>
> What do you think? Do you have any advice on how to best set up such a
system?

I use a similar setup. Several top-level directories in my $HOME are bind
mounts to a large mechanical drive. My swap (16GB) is on that drive also.
I've found that 100MB is enough for the EFI /boot partition (but I clean
old kernels immediately after updating).

For the /tmp I use tmpfs (I use the size=100% option), and then in
/etc/portage/make.conf I have:

PORTAGE_TMPDIR="/tmp"

This way I fully use /tmp when compiling large packages, and don't wear
down my SSD.

Regards.
--
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México


Re: [gentoo-user] Gentoo on SSD

2010-02-22 Thread daid kahl
On 17 February 2010 06:27, Grant emailgr...@gmail.com wrote:
  I thought SSDs were projected to
 last longer than HDs?  Also, from what I've read, SLC should last much
 longer than MLC.

 It's the other way round: HD's last longer dan SSD's. [1]

 [1] http://en.wikipedia.org/wiki/Solid-state_drive#Disadvantages

 Thanks for the link.  I did some Googleing too and I'm really
 surprised at what I found.  It sounds like SSDs don't have the
 projected longevity they did when I researched this a year or so ago.
 I'm troubled by the ever-lurking possibility of an HD failure and I
 thought SSDs would be my way out.  Is an HD the best choice for
 reliability?

 - Grant



As far as I know, solid state devices are much more susceptible to
solar flare damage, particularly if you are outside.  This is not
exactly common, but hey.  Of course I also have a theory that not an
insignificant number of computer problems are caused by bit-flips from
cosmic ray induced muon showers, but I digress...

~daid



Re: [gentoo-user] Gentoo on SSD

2010-02-22 Thread Stroller


On 22 Feb 2010, at 07:54, daid kahl wrote:

...
As far as I know, solid state devices are much more susceptible to
solar flare damage, particularly if you are outside.  This is not
exactly common, but hey.  Of course I also have a theory that not an
insignificant number of computer problems are caused by bit-flips from
cosmic ray induced muon showers, but I digress...


I have recently decided to blame solar flares  cosmic ray induced  
muon showers whenever one of my customers asks why their PC is broken.


Stroller.




Re: [gentoo-user] Gentoo on SSD

2010-02-22 Thread Alan McKinnon
On Monday 22 February 2010 12:57:27 Stroller wrote:
 On 22 Feb 2010, at 07:54, daid kahl wrote:
  ...
  As far as I know, solid state devices are much more susceptible to
  solar flare damage, particularly if you are outside.  This is not
  exactly common, but hey.  Of course I also have a theory that not an
  insignificant number of computer problems are caused by bit-flips from
  cosmic ray induced muon showers, but I digress...
 
 I have recently decided to blame solar flares  cosmic ray induced
 muon showers whenever one of my customers asks why their PC is broken.

Flavour of the moment here where I am:

High energy gamma rays from quasars at the edge of the visible known universe 
produced when the universe was a mere 700 million years old.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Gentoo on SSD

2010-02-22 Thread Neil Bothwick
On Mon, 22 Feb 2010 10:57:27 +, Stroller wrote:

 I have recently decided to blame solar flares  cosmic ray induced  
 muon showers whenever one of my customers asks why their PC is broken.

We are coming out of a long period of minimal solar activity with
activity expected to hit a high peak in the next couple of years. It has
already been predicted that this will affect GPS accuracy.

So not only will you have a reason for the failure, you'll also have an
excuse for turning up late to fix it :)


-- 
Neil Bothwick

Hard work has a future payoff. Laziness pays off now.


signature.asc
Description: PGP signature


Re: [gentoo-user] Gentoo on SSD

2010-02-16 Thread Norman Rieß

Am 02/16/10 10:28, schrieb alain.didierj...@free.fr:

I'm thinking of re-installing Gentoo on an Intel 40 Megs SSD -- excluding the
most often writen dirs like /var, /tmp, /home --. What do you think ? I'll be
glad to hear about previous experiences. What about swap ? Is it safe to have it
on the SSD ?

   

Hi,

i have a Gentoo System on SSD running for a while now. No problems.

Regards,
Norman



Re: [gentoo-user] Gentoo on SSD

2010-02-16 Thread Volker Armin Hemmann
On Dienstag 16 Februar 2010, alain.didierj...@free.fr wrote:
 I'm thinking of re-installing Gentoo on an Intel 40 Megs SSD -- excluding
 the most often writen dirs like /var, /tmp, /home --. What do you think ?
 I'll be glad to hear about previous experiences. What about swap ? Is it
 safe to have it on the SSD ?

I have / on ssd, but /tmp on tmpfs, /var on harddisk and swap on harddisk.

I don't want to wear it down ... and 40gb is not that much.



Re: [gentoo-user] Gentoo on SSD

2010-02-16 Thread Stefan G. Weichinger
Am 16.02.2010 11:42, schrieb Norman Rieß:
 Am 02/16/10 10:28, schrieb alain.didierj...@free.fr:
 I'm thinking of re-installing Gentoo on an Intel 40 Megs SSD --
 excluding the
 most often writen dirs like /var, /tmp, /home --. What do you think ?
 I'll be
 glad to hear about previous experiences. What about swap ? Is it safe
 to have it
 on the SSD ?


 Hi,
 
 i have a Gentoo System on SSD running for a while now. No problems.

Hmm, I see massive crashes with my Intel Postville G2 80GB, in the last
2 days ... maybe I have received a bad one ... shouldn't be the same for
all of them.

Gentoo didn't detect it anymore ... etc.

I still try to decide how to proceed. Maybe completely reset it and
start from scratch.

Just my current experience with this specific device ...

Stefan





Re: [gentoo-user] Gentoo on SSD

2010-02-16 Thread Grant
 I'm thinking of re-installing Gentoo on an Intel 40 Megs SSD -- excluding the
 most often writen dirs like /var, /tmp, /home --. What do you think ? I'll be
 glad to hear about previous experiences. What about swap ? Is it safe to have 
 it
 on the SSD ?

Why exclude the most written dirs?  I thought SSDs were projected to
last longer than HDs?  Also, from what I've read, SLC should last much
longer than MLC.

- Grant



Re: [gentoo-user] Gentoo on SSD

2010-02-16 Thread Ward Poelmans
On Tue, Feb 16, 2010 at 22:04, Grant emailgr...@gmail.com wrote:
  I thought SSDs were projected to
 last longer than HDs?  Also, from what I've read, SLC should last much
 longer than MLC.

It's the other way round: HD's last longer dan SSD's. [1]

[1] http://en.wikipedia.org/wiki/Solid-state_drive#Disadvantages

Regards,

Ward



Re: [gentoo-user] Gentoo on SSD

2010-02-16 Thread Grant
  I thought SSDs were projected to
 last longer than HDs?  Also, from what I've read, SLC should last much
 longer than MLC.

 It's the other way round: HD's last longer dan SSD's. [1]

 [1] http://en.wikipedia.org/wiki/Solid-state_drive#Disadvantages

Thanks for the link.  I did some Googleing too and I'm really
surprised at what I found.  It sounds like SSDs don't have the
projected longevity they did when I researched this a year or so ago.
I'm troubled by the ever-lurking possibility of an HD failure and I
thought SSDs would be my way out.  Is an HD the best choice for
reliability?

- Grant



Re: [gentoo-user] Gentoo on SSD

2010-02-16 Thread Volker Armin Hemmann
On Dienstag 16 Februar 2010, Grant wrote:
   I thought SSDs were projected to
  last longer than HDs?  Also, from what I've read, SLC should last much
  longer than MLC.
  
  It's the other way round: HD's last longer dan SSD's. [1]
  
  [1] http://en.wikipedia.org/wiki/Solid-state_drive#Disadvantages
 
 Thanks for the link.  I did some Googleing too and I'm really
 surprised at what I found.  It sounds like SSDs don't have the
 projected longevity they did when I researched this a year or so ago.
 I'm troubled by the ever-lurking possibility of an HD failure and I
 thought SSDs would be my way out.  Is an HD the best choice for
 reliability?
 
 - Grant

depends. Intel for example slows down the ssd if you write too much to prevent 
premature failure. 

HDD are prone to mechanical failure. SSD not. If you only do moderate writing 
SSD are much more reliable. If you do a lot of writing - douzends of gigabyte 
a day with a lot of overwriting, a HDD might be the better choice.



Re: [gentoo-user] Gentoo on SSD

2010-02-16 Thread Stefan G. Weichinger
Am 16.02.2010 22:27, schrieb Grant:
 It sounds like SSDs don't have the
 projected longevity they did when I researched this a year or so ago.
 I'm troubled by the ever-lurking possibility of an HD failure and I
 thought SSDs would be my way out.  Is an HD the best choice for
 reliability?

I still don't know.

I had the impression that having my home-dir on the ssd lead to
filesystem-problems ... maybe all those tiny writes ... I don't know.

Could be fs-related as well ...

Moved my home back to hdd as recommended by Volker here a few months
ago. Only having my root on the ssd worked OK for quite some time
(sidenote: how to do that on my thinkpad? Having it hdd-free is one main
reason to move to ssd ...)

As mentioned I faced some hefty crashes in the last days ...
unfortunately I wasn't able to record the logs as the drive simply
disappeared. I thought I had the latest dmesg  myfile on hdd but it
was empty after a reboot 

Currently I am back on my raid1-hdd-root ... slower but OK ;-)

The crashes happened with tuxonice-sources-2.6.32 -- dunno, if the
latest ebuild brings some changes helping in this context.

Maybe it's ext4-related as well ... you know, many moving parts in a
modern system 

Stefan



Re: [gentoo-user] Gentoo on SSD

2010-02-16 Thread Neil Bothwick
On Tue, 16 Feb 2010 13:27:22 -0800, Grant wrote:

 I'm troubled by the ever-lurking possibility of an HD failure and I
 thought SSDs would be my way out.  Is an HD the best choice for
 reliability?

A single drive, be it HD or SSD, is always at risk of failure. If this is
a significant concern, you should be using some form of RAID, along with
regular, automated backups of course.


-- 
Neil Bothwick

There is no such thing as an atheist in a foxhole.


signature.asc
Description: PGP signature