2025-09-06T13:29:35-0000 Stuart Henderson <[email protected]>:
> 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.

sthen@, do you think this might be worth a pkg-readme? Scott was able to
trace the issue back to memory limits but other users might not know how
to deal with this.

Scott, I believe you use the .desktop file to launch FreeCAD, correct?
If so, you will probably want to make a copy under
~/.local/share/applications that launches a wrapper script, as sthen@
suggests.

Reply via email to