Re: [HACKERS] pgbench stuck with 100% cpu usage - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: [HACKERS] pgbench stuck with 100% cpu usage
Date
Msg-id alpine.DEB.2.20.1709290844380.23406@lancre
Whole thread Raw
In response to Re: [HACKERS] pgbench stuck with 100% cpu usage  (Pavan Deolasee <pavan.deolasee@gmail.com>)
List pgsql-hackers
>>> - Run pgbench -c 10 -T 100
>>> - Stop postgres with -m immediate
>>
>> That is a strange test to run, but it would be better if the behavior was
>> not that one.
>
>
> Well, I think it's a very legitimate test, not for testing performance, but
> testing crash recovery and I use it very often.

Ok, interesting. Now I understand your purpose.

You may consider something like "BEGIN; UPDATE ...; \sleep 100 ms; 
COMMIT;" so that a crash is most likely to occur with plenty transactions 
in progress but without much load.

-- 
Fabien.


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

pgsql-hackers by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: [HACKERS] Enhancements to passwordcheck
Next
From: chenhj
Date:
Subject: Re: [HACKERS] [PATCH]make pg_rewind to not copy useless WALfiles