General

Profile

nateberkopec (Nate Berkopec)

  • Login: nateberkopec
  • Registered on: 07/03/2016
  • Last sign in: 05/31/2025

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

05/31/2025

03:43 AM Ruby Feature #20861: Add an environment variable for tuning the default thread quantum
Just to report back about this feature.
I've tried this now with about 5 different apps of various sizes, ranging from 10 requests per second up to 1000 requests per second. Both on web (Puma) and background job (Sidekiq) workloads. C...
nateberkopec (Nate Berkopec)

04/23/2024

10:43 PM Ruby Feature #20443: Allow Major GC's to be disabled
Regarding the interface:
``` ruby
GC.disable(major: true)
GC.disable(type: :major)
```
Should we consider these additional keyword arguments rather than adding a new method?
nateberkopec (Nate Berkopec)

10/20/2020

08:15 PM Ruby Misc #17199: id outputed by inspect and to_s output does not allow to find actual object_id and vice-versa
This looks like an oversight to me? I agree with Benoit - showing object_id everywhere we used to show address seems the best way forward. nateberkopec (Nate Berkopec)

02/26/2020

07:40 PM Ruby Bug #16654: Segfault in rb_str_hash
The application I'm reproducing it on is here: https://github.com/codetriage/codetriage
I think you should be able to "bundle install" and then use my script above and it would reproduce.
nateberkopec (Nate Berkopec)

02/25/2020

08:03 PM Ruby Bug #16654: Segfault in rb_str_hash
Does not reproduce on 2.5.5, and reproduces on 2.6.0
Unfortunately, doesn't reproduce with a simple script, e.g.:
```ruby
require "memory_profiler"
report = MemoryProfiler.report do
1_000_000.times { "allocate a string" }
end
report...
nateberkopec (Nate Berkopec)
07:34 PM Ruby Bug #16654: Segfault in rb_str_hash
This reproduces on 2.7.0 as well (though the thing calling `rb_str_hash` was different, this time `objspace_each_objects`)
```
-- C level backtrace information -------------------------------------------
/Users/nateberkopec/.rubies/ruby...
nateberkopec (Nate Berkopec)
07:32 PM Ruby Bug #16654 (Closed): Segfault in rb_str_hash
Seen in ruby 2.6.5.
```
-- C level backtrace information -------------------------------------------
/Users/nateberkopec/.rubies/ruby-2.6.5/bin/ruby(rb_vm_bugreport+0x82) [0x10632d9c2]
/Users/nateberkopec/.rubies/ruby-2.6.5/bin/rub...
nateberkopec (Nate Berkopec)

03/18/2019

08:51 PM Ruby Feature #15626: Manual Compaction for MRI's GC (`GC.compact`)
> Can we introduce it just after every major (full) gc?
I agree. If the necessary steps are Full GC -> Update -> Move -> Full GC, then it would be faster to just compact automatically after a full GC which is already occurring. I unde...
nateberkopec (Nate Berkopec)

11/04/2016

06:01 PM Ruby Feature #12236: Introduce `mmap` managed heap
Yura Sokolov wrote:
> > I believe we don't have any drawback with 256MB virtual memory allocation. (but it can depend on OSs)
> ...
Well, as long as your Ruby process never actually needs more than 64MB of memory, that's not a problem,...
nateberkopec (Nate Berkopec)

07/03/2016

04:25 PM Ruby Bug #12544 (Closed): Segfault on ruby-head
Log is available here: https://travis-ci.org/getsentry/raven-ruby/jobs/142024230
Following the steps in the log should repro.
It may be Rails 4.2 related, as our Rails 5.0 build does not segfault.
nateberkopec (Nate Berkopec)

Also available in: Atom