Обсуждение: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

Поиск
Список
Период
Сортировка

Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Achilleas Mantzios
Дата:
Hello,

we maintain a DB of nearly 500GB of data (and always getting larger), and we are currently thinking of moving to SSD.
I have read Greg Smith's book on PostgreSQL 9.0 High Performance and his considerations on SSD and the way that write
backworks. 

This particular model (Samsung SSD 850 PRO 1T) does not employ any special circuitry, battery or capacitor
to enforce that the data are really flushed to the medium.

What is your take on this? Is it dangerous to have PgSQL on this disk especially in cases of power outages? (we have
fullUPS support, however nothing can be overlooked, anything can happen) 

Thank you

--
Achilleas Mantzios
Head of IT DEV
IT DEPT
Dynacom Tankers Mgmt



Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
"Joshua D. Drake"
Дата:
On 03/13/2015 04:27 AM, Achilleas Mantzios wrote:
>
> Hello,
>
> we maintain a DB of nearly 500GB of data (and always getting larger),
> and we are currently thinking of moving to SSD.
> I have read Greg Smith's book on PostgreSQL 9.0 High Performance and his
> considerations on SSD and the way that write back works.
>
> This particular model (Samsung SSD 850 PRO 1T) does not employ any
> special circuitry, battery or capacitor
> to enforce that the data are really flushed to the medium.
>
> What is your take on this? Is it dangerous to have PgSQL on this disk
> especially in cases of power outages? (we have full UPS support, however
> nothing can be overlooked, anything can happen)

If it does not have power loss protection, don't use it.

JD

--
The most kicking donkey PostgreSQL Infrastructure company in existence.
The oldest, the most experienced, the consulting company to the stars.
Command Prompt, Inc. http://www.commandprompt.com/ +1 -503-667-4564 -
24x7 - 365 - Proactive and Managed Professional Services!


Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Achilleas Mantzios
Дата:
On 13/03/2015 13:40, Joshua D. Drake wrote:
> On 03/13/2015 04:27 AM, Achilleas Mantzios wrote:
>>
>> Hello,
>>
>> we maintain a DB of nearly 500GB of data (and always getting larger),
>> and we are currently thinking of moving to SSD.
>> I have read Greg Smith's book on PostgreSQL 9.0 High Performance and his
>> considerations on SSD and the way that write back works.
>>
>> This particular model (Samsung SSD 850 PRO 1T) does not employ any
>> special circuitry, battery or capacitor
>> to enforce that the data are really flushed to the medium.
>>
>> What is your take on this? Is it dangerous to have PgSQL on this disk
>> especially in cases of power outages? (we have full UPS support, however
>> nothing can be overlooked, anything can happen)
>
> If it does not have power loss protection, don't use it.

Thanx Joshua.

If theoretically somehow we eliminate the power loss factor, would it make sense to use such a disk?

>
> JD
>


--
Achilleas Mantzios
Head of IT DEV
IT DEPT
Dynacom Tankers Mgmt



Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Scott Ribe
Дата:
On Mar 13, 2015, at 5:27 AM, Achilleas Mantzios <achill@matrix.gatewaynet.com> wrote:
>
> What is your take on this? Is it dangerous to have PgSQL on this disk especially in cases of power outages?

Of course.

> (we have full UPS support, however nothing can be overlooked, anything can happen)

Yeah, had a hospital IT server room lose power to a whole rack. Redundant UPSs throughout the data center, but one rack
notwired correctly, routine maintenance on 1 UPS took down the rack... 

--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice






Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Achilleas Mantzios
Дата:
On 13/03/2015 15:27, Scott Ribe wrote:
> On Mar 13, 2015, at 5:27 AM, Achilleas Mantzios <achill@matrix.gatewaynet.com> wrote:
>> What is your take on this? Is it dangerous to have PgSQL on this disk especially in cases of power outages?
> Of course.
>
>> (we have full UPS support, however nothing can be overlooked, anything can happen)
> Yeah, had a hospital IT server room lose power to a whole rack. Redundant UPSs throughout the data center, but one
racknot wired correctly, routine maintenance on 1 UPS took down the rack... 
>

Thanks Scott



--
Achilleas Mantzios
Head of IT DEV
IT DEPT
Dynacom Tankers Mgmt



Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Scott Marlowe
Дата:
On Fri, Mar 13, 2015 at 7:16 AM, Achilleas Mantzios
<achill@matrix.gatewaynet.com> wrote:
> On 13/03/2015 13:40, Joshua D. Drake wrote:
>>
>> On 03/13/2015 04:27 AM, Achilleas Mantzios wrote:
>>>
>>>
>>> Hello,
>>>
>>> we maintain a DB of nearly 500GB of data (and always getting larger),
>>> and we are currently thinking of moving to SSD.
>>> I have read Greg Smith's book on PostgreSQL 9.0 High Performance and his
>>> considerations on SSD and the way that write back works.
>>>
>>> This particular model (Samsung SSD 850 PRO 1T) does not employ any
>>> special circuitry, battery or capacitor
>>> to enforce that the data are really flushed to the medium.
>>>
>>> What is your take on this? Is it dangerous to have PgSQL on this disk
>>> especially in cases of power outages? (we have full UPS support, however
>>> nothing can be overlooked, anything can happen)
>>
>>
>> If it does not have power loss protection, don't use it.
>
>
> Thanx Joshua.
>
> If theoretically somehow we eliminate the power loss factor, would it make
> sense to use such a disk?

Sadly there's no way to eliminate power loss in real life.

Now if you can live with some data loss corruption that's a different matter.


--
To understand recursion, one must first understand recursion.


Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Achilleas Mantzios
Дата:
On 13/03/2015 15:47, Scott Marlowe wrote:
> On Fri, Mar 13, 2015 at 7:16 AM, Achilleas Mantzios
> <achill@matrix.gatewaynet.com> wrote:
>> On 13/03/2015 13:40, Joshua D. Drake wrote:
>>> On 03/13/2015 04:27 AM, Achilleas Mantzios wrote:
>>>>
>>>> Hello,
>>>>
>>>> we maintain a DB of nearly 500GB of data (and always getting larger),
>>>> and we are currently thinking of moving to SSD.
>>>> I have read Greg Smith's book on PostgreSQL 9.0 High Performance and his
>>>> considerations on SSD and the way that write back works.
>>>>
>>>> This particular model (Samsung SSD 850 PRO 1T) does not employ any
>>>> special circuitry, battery or capacitor
>>>> to enforce that the data are really flushed to the medium.
>>>>
>>>> What is your take on this? Is it dangerous to have PgSQL on this disk
>>>> especially in cases of power outages? (we have full UPS support, however
>>>> nothing can be overlooked, anything can happen)
>>>
>>> If it does not have power loss protection, don't use it.
>>
>> Thanx Joshua.
>>
>> If theoretically somehow we eliminate the power loss factor, would it make
>> sense to use such a disk?
> Sadly there's no way to eliminate power loss in real life.
>
> Now if you can live with some data loss corruption that's a different matter.

Thanx,
the question is if postgresql will recover, we can tolerate some data loss,
but no total db corruption, equivalent to fsync=false, with the db unable to recover.

>
>


--
Achilleas Mantzios
Head of IT DEV
IT DEPT
Dynacom Tankers Mgmt



Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Scott Marlowe
Дата:
On Fri, Mar 13, 2015 at 7:55 AM, Achilleas Mantzios
<achill@matrix.gatewaynet.com> wrote:
> On 13/03/2015 15:47, Scott Marlowe wrote:
>>
>> On Fri, Mar 13, 2015 at 7:16 AM, Achilleas Mantzios
>> <achill@matrix.gatewaynet.com> wrote:
>>>
>>> On 13/03/2015 13:40, Joshua D. Drake wrote:
>>>>
>>>> On 03/13/2015 04:27 AM, Achilleas Mantzios wrote:
>>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> we maintain a DB of nearly 500GB of data (and always getting larger),
>>>>> and we are currently thinking of moving to SSD.
>>>>> I have read Greg Smith's book on PostgreSQL 9.0 High Performance and
>>>>> his
>>>>> considerations on SSD and the way that write back works.
>>>>>
>>>>> This particular model (Samsung SSD 850 PRO 1T) does not employ any
>>>>> special circuitry, battery or capacitor
>>>>> to enforce that the data are really flushed to the medium.
>>>>>
>>>>> What is your take on this? Is it dangerous to have PgSQL on this disk
>>>>> especially in cases of power outages? (we have full UPS support,
>>>>> however
>>>>> nothing can be overlooked, anything can happen)
>>>>
>>>>
>>>> If it does not have power loss protection, don't use it.
>>>
>>>
>>> Thanx Joshua.
>>>
>>> If theoretically somehow we eliminate the power loss factor, would it
>>> make
>>> sense to use such a disk?
>>
>> Sadly there's no way to eliminate power loss in real life.
>>
>> Now if you can live with some data loss corruption that's a different
>> matter.
>
>
> Thanx,
> the question is if postgresql will recover, we can tolerate some data loss,
> but no total db corruption, equivalent to fsync=false, with the db unable to
> recover.
>

Sadly that is the exact thing that is likely to happen.

P.s. I worked in a BIG data center that lost all power. Three power
conditioners, three USPs and the switch for the diesel gen all blew
out at once. Lots of dbs that relied on never losing power were
corrupted and took days to recover most of their data and get back
online.


Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Ryan Thompson
Дата:
Personally, I'd steer clear of Samsung desktop SSDs for anything mission-critical. I've seen them get ripped apart by standard SATA controllers as well as LSI MegaRAID. My rule of thumb is Samsung is okay as long as we're using RAID 1. 

For data loss, pick up a RAID controller card with BBU or capacitor-based cache protection. That way, in the event of a total power failure, the data integrity is maintained and simply continues writing to disk once power is restored.

Best Regards,

On Fri, Mar 13, 2015 at 7:01 AM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
On Fri, Mar 13, 2015 at 7:55 AM, Achilleas Mantzios
<achill@matrix.gatewaynet.com> wrote:
> On 13/03/2015 15:47, Scott Marlowe wrote:
>>
>> On Fri, Mar 13, 2015 at 7:16 AM, Achilleas Mantzios
>> <achill@matrix.gatewaynet.com> wrote:
>>>
>>> On 13/03/2015 13:40, Joshua D. Drake wrote:
>>>>
>>>> On 03/13/2015 04:27 AM, Achilleas Mantzios wrote:
>>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> we maintain a DB of nearly 500GB of data (and always getting larger),
>>>>> and we are currently thinking of moving to SSD.
>>>>> I have read Greg Smith's book on PostgreSQL 9.0 High Performance and
>>>>> his
>>>>> considerations on SSD and the way that write back works.
>>>>>
>>>>> This particular model (Samsung SSD 850 PRO 1T) does not employ any
>>>>> special circuitry, battery or capacitor
>>>>> to enforce that the data are really flushed to the medium.
>>>>>
>>>>> What is your take on this? Is it dangerous to have PgSQL on this disk
>>>>> especially in cases of power outages? (we have full UPS support,
>>>>> however
>>>>> nothing can be overlooked, anything can happen)
>>>>
>>>>
>>>> If it does not have power loss protection, don't use it.
>>>
>>>
>>> Thanx Joshua.
>>>
>>> If theoretically somehow we eliminate the power loss factor, would it
>>> make
>>> sense to use such a disk?
>>
>> Sadly there's no way to eliminate power loss in real life.
>>
>> Now if you can live with some data loss corruption that's a different
>> matter.
>
>
> Thanx,
> the question is if postgresql will recover, we can tolerate some data loss,
> but no total db corruption, equivalent to fsync=false, with the db unable to
> recover.
>

Sadly that is the exact thing that is likely to happen.

P.s. I worked in a BIG data center that lost all power. Three power
conditioners, three USPs and the switch for the diesel gen all blew
out at once. Lots of dbs that relied on never losing power were
corrupted and took days to recover most of their data and get back
online.


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Scott Marlowe
Дата:
On Fri, Mar 13, 2015 at 8:31 AM, Ryan Thompson <agyant@gmail.com> wrote:
> On Fri, Mar 13, 2015 at 7:01 AM, Scott Marlowe <scott.marlowe@gmail.com>
> wrote:
>>
>> On Fri, Mar 13, 2015 at 7:55 AM, Achilleas Mantzios
>> <achill@matrix.gatewaynet.com> wrote:
>> > On 13/03/2015 15:47, Scott Marlowe wrote:
>> >>
>> >> On Fri, Mar 13, 2015 at 7:16 AM, Achilleas Mantzios
>> >> <achill@matrix.gatewaynet.com> wrote:
>> >>>
>> >>> On 13/03/2015 13:40, Joshua D. Drake wrote:
>> >>>>
>> >>>> On 03/13/2015 04:27 AM, Achilleas Mantzios wrote:
>> >>>>>
>> >>>>>
>> >>>>> Hello,
>> >>>>>
>> >>>>> we maintain a DB of nearly 500GB of data (and always getting
>> >>>>> larger),
>> >>>>> and we are currently thinking of moving to SSD.
>> >>>>> I have read Greg Smith's book on PostgreSQL 9.0 High Performance and
>> >>>>> his
>> >>>>> considerations on SSD and the way that write back works.
>> >>>>>
>> >>>>> This particular model (Samsung SSD 850 PRO 1T) does not employ any
>> >>>>> special circuitry, battery or capacitor
>> >>>>> to enforce that the data are really flushed to the medium.
>> >>>>>
>> >>>>> What is your take on this? Is it dangerous to have PgSQL on this
>> >>>>> disk
>> >>>>> especially in cases of power outages? (we have full UPS support,
>> >>>>> however
>> >>>>> nothing can be overlooked, anything can happen)
>> >>>>
>> >>>>
>> >>>> If it does not have power loss protection, don't use it.
>> >>>
>> >>>
>> >>> Thanx Joshua.
>> >>>
>> >>> If theoretically somehow we eliminate the power loss factor, would it
>> >>> make
>> >>> sense to use such a disk?
>> >>
>> >> Sadly there's no way to eliminate power loss in real life.
>> >>
>> >> Now if you can live with some data loss corruption that's a different
>> >> matter.
>> >
>> >
>> > Thanx,
>> > the question is if postgresql will recover, we can tolerate some data
>> > loss,
>> > but no total db corruption, equivalent to fsync=false, with the db
>> > unable to
>> > recover.
>> >
>>
>> Sadly that is the exact thing that is likely to happen.
>>
>> P.s. I worked in a BIG data center that lost all power. Three power
>> conditioners, three USPs and the switch for the diesel gen all blew
>> out at once. Lots of dbs that relied on never losing power were
>> corrupted and took days to recover most of their data and get back
>> online.
>>

> Personally, I'd steer clear of Samsung desktop SSDs for anything
> mission-critical. I've seen them get ripped apart by standard SATA
> controllers as well as LSI MegaRAID. My rule of thumb is Samsung is okay as
> long as we're using RAID 1.
>
> For data loss, pick up a RAID controller card with BBU or capacitor-based
> cache protection. That way, in the event of a total power failure, the data
> integrity is maintained and simply continues writing to disk once power is
> restored.

That won't save you from SSDs that aren't safe if they lose power. The
problem is that the SSDs that don't have the ability to finish writes
when they lost power act as though they do. They respond positively to
fsync requests while not actually writing your data out to the memory
cells. So if you lose power, the RAID controller thinks that data is
already written when it's not.

Simple rule, avoid SSDs that don't have super caps or some other
method to write out your data safely in the event of a power failure.


Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Fernando Hevia
Дата:


On Fri, Mar 13, 2015 at 11:31 AM, Ryan Thompson <agyant@gmail.com> wrote:
Personally, I'd steer clear of Samsung desktop SSDs for anything mission-critical. I've seen them get ripped apart by standard SATA controllers as well as LSI MegaRAID. My rule of thumb is Samsung is okay as long as we're using RAID 1. 

For data loss, pick up a RAID controller card with BBU or capacitor-based cache protection. That way, in the event of a total power failure, the data integrity is maintained and simply continues writing to disk once power is restored.

I am afraid that won't suffice. The HD will signal the controller that the data has been committed safely - which we know is not the case - and the controller cache data would be discarded to make room for new blocks.


Re: Samsung SSD 850 PRO 1T : any good for PostgreSQL?

От
Achilleas Mantzios
Дата:
On 13/03/2015 18:01, Fernando Hevia wrote:


On Fri, Mar 13, 2015 at 11:31 AM, Ryan Thompson <agyant@gmail.com> wrote:
Personally, I'd steer clear of Samsung desktop SSDs for anything mission-critical. I've seen them get ripped apart by standard SATA controllers as well as LSI MegaRAID. My rule of thumb is Samsung is okay as long as we're using RAID 1. 

For data loss, pick up a RAID controller card with BBU or capacitor-based cache protection. That way, in the event of a total power failure, the data integrity is maintained and simply continues writing to disk once power is restored.

I am afraid that won't suffice. The HD will signal the controller that the data has been committed safely - which we know is not the case - and the controller cache data would be discarded to make room for new blocks.



People,

thanks a lot for all your replies. I just hope I won't have to send the next message in this list in full panic mode.

-- 
Achilleas Mantzios
Head of IT DEV
IT DEPT
Dynacom Tankers Mgmt