# Some bad\_alloc on 6.0/6.1

**URL:** <https://forum.scylladb.com/t/some-bad-alloc-on-6-0-6-1/4592>\
**Category:** ScyllaDB\
**Tags:** error-message, upgrade, batch\
**Created:** [March 10, 2025, 5:33pm UTC](https://forum.scylladb.com/t/some-bad-alloc-on-6-0-6-1/4592 "2025-03-10T17:33:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sha](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@sha](https://forum.scylladb.com/u/sha)\
**Post date:** [March 10, 2025, 5:33pm UTC](https://forum.scylladb.com/t/some-bad-alloc-on-6-0-6-1/4592/1 "2025-03-10T17:33:20Z")

</div>

_Installation details_  
#ScyllaDB version: 6.1.5-0.20250119.c84780618297  
#Cluster size: 150 To on 10 nodes  
#os (RHEL/CentOS/Ubuntu/AWS AMI): Ubuntu 22.04

Hi, since I have upgrade from scylla 5.4 to 6.0, i have ~20/min batch insert queries failing with “bad\_alloc” reason (while between 5k and 15k queries beside are ok).  
Upgrading to 6.1 did not helped, neither reducing the size of batches.  
I did not encounter this problem with v5.4, and I have no idea of which node is generating this kind of error. I have tried to add a few gb of memory whithout any luck.

What can I do ?

---

<div class="post-metadata">

**Author:** ![Gui\_Nogueira](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/gui_nogueira/32/23_2.png) [@Gui\_Nogueira](https://forum.scylladb.com/u/Gui_Nogueira)\
**Post date:** [April 15, 2025, 12:46pm UTC](https://forum.scylladb.com/t/some-bad-alloc-on-6-0-6-1/4592/2 "2025-04-15T12:46:15Z")

</div>

How much memory do you have per node?  
We usually recommend 8GB per shard - so if you have 150TB on 10 nodes, thus 15TB per node, the minimum memory on each node should be ~160GB. The recommended number of vCPUs in that case is ~20 per node.

---

<div class="post-metadata">

**Author:** ![sha](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@sha](https://forum.scylladb.com/u/sha)\
**Post date:** [April 15, 2025, 3:24pm UTC](https://forum.scylladb.com/t/some-bad-alloc-on-6-0-6-1/4592/3 "2025-04-15T15:24:28Z")

</div>

Thanks for your reply  
Initial setup was 125 Go with 4 vcpu, that went fine with 5.4 ; i tried to raise it up to 175G on 3 nodes but without any significant win. Payload is now ~10To per node, still 10 nodes.
