On 2025-09-05, Heppler, J. Scott <[email protected]> wrote:
> Hi,
>
> I've been testing the newly committed CAD/freecad port and would first
> like to acknowledge the amount and quality of work that went into the
> port.
>
> One of my models has some fine detail that was not 3D printing and
> attempts to increase the meshing resolution for STL export core dumped.
> For completeness, CAD drafting is known to be memory intense.
>
> I worked around this by joining the staff group and editing "infinity"
> memory limits.
>
> Technically, I only need the memory limits for CAD work and recognize
> that memory limits are a safety feature.
>
> I was wondering if a feature could be added at login to increase login
> to the same home directory with increased limits?  Login via xenodm?
> This would save editing /etc/login.conf and a reboot.  It would also
> limit the amount of time of increased memory vulnerability.

No need for an extra OS feature. You can raise the hard limit in
login.conf (-max) but not the soft limit, then use an alias or wrapper
script to adjust the soft limit via ulimit before starting your memory-
hungry process.


-- 
Please keep replies on the mailing list.

Reply via email to