From nobody Sat Apr 20 16:01:12 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VMGTT4QpNz5J2nn for ; Sat, 20 Apr 2024 16:01:17 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4VMGTT20dSz4sSP; Sat, 20 Apr 2024 16:01:17 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Authentication-Results: mx1.freebsd.org; none Received: from [192.168.5.3] (c-98-42-44-116.hsd1.ca.comcast.net [98.42.44.116]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 43KG1FPY098392 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 20 Apr 2024 09:01:15 -0700 (PDT) (envelope-from yuri@FreeBSD.org) X-Authentication-Warning: shell1.rawbw.com: Host c-98-42-44-116.hsd1.ca.comcast.net [98.42.44.116] claimed to be [192.168.5.3] Content-Type: multipart/alternative; boundary="------------lOhfGVTApTsArjSP8mHuNsKK" Message-ID: <9dd25b52-184d-4e06-af91-1f54f1f882a7@FreeBSD.org> Date: Sat, 20 Apr 2024 09:01:12 -0700 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: What does this error mean: No space available for static Thread Local Storage ? Content-Language: en-US To: Juraj Lutter , Yuri Cc: freebsd-hackers@freebsd.org References: <42774b55-241a-497b-816f-94b95187c3e6@FreeBSD.org> <6fd793ca-60ec-47e7-9ec9-4bcb56803426@FreeBSD.org> From: Yuri In-Reply-To: X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7961, ipnet:198.144.192.0/23, country:US] X-Rspamd-Queue-Id: 4VMGTT20dSz4sSP This is a multi-part message in MIME format. --------------lOhfGVTApTsArjSP8mHuNsKK Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Juraj, On 4/20/24 02:10, Juraj Lutter wrote: > When we’re at rust and memory (thread-local storage?) related: I’ve tried to run databases/qdrant > in production. It works until it’s idle. When some collections are being created/loaded, it crashes. > I have been able to track it down to malloc() called from within strdup() called from within thr_set_name(). This sounds like a serious problem. Changing an allocator to MiMalloc might help. This is an easy change. Did you report this to Rust or to quadrant? Thanks, YUri --------------lOhfGVTApTsArjSP8mHuNsKK Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hi Juraj,


On 4/20/24 02:10, Juraj Lutter wrote:
When we’re at rust and memory (thread-local storage?) related: I’ve tried to run databases/qdrant
in production. It works until it’s idle. When some collections are being created/loaded, it crashes.
I have been able to track it down to malloc() called from within strdup() called from within thr_set_name().


This sounds like a serious problem.

Changing an allocator to MiMalloc might help.

This is an easy change.


Did you report this to Rust or to quadrant?



Thanks,

YUri

--------------lOhfGVTApTsArjSP8mHuNsKK--