Re: GIMP 1.2.0 and Solaris 7/SPARC

2000-12-29 Thread Sven Neumann

Hi,

Tino Schwarze <[EMAIL PROTECTED]> writes:

> Without having looked at the code - what do we need that many FDs for?!
> We don't need to open all palettes at once, do we?

Gimp-1.2.0 leaks a filedescriptor when loading palettes. This has been fixed
in the meantime. 


Salut, Sven




Re: GIMP 1.2.0 and Solaris 7/SPARC

2000-12-28 Thread egger

On 28 Dec, Tino Schwarze wrote:

> Without having looked at the code - what do we need that many FDs for?!
> We don't need to open all palettes at once, do we?

 The code for the brushes, gradients and the palettes is (was?)
 really nasty. But the file descriptors are closed after the complete
 palette is loaded to memory, if this is not the case on Solaris we
 should have a closer look on this one because it might easily eat 
 of the whole systemressources.

-- 

Servus,
   Daniel




Re: GIMP 1.2.0 and Solaris 7/SPARC

2000-12-27 Thread Tino Schwarze

Hi,

On Thu, Dec 28, 2000 at 04:48:39AM +0100, Mårten Svantesson wrote:
> > While trying to run gimp 1.2.0 on Solaris 7/SPARC:
> >   $ gimp
> > 
> >   Gimp-WARNING **: Failed to open palette file
> >   /home/china/.gimp-1.2/palettes/Bears: can't happen?
> >   Gimp-WARNING **: Failed to open palette file
> >   /home/china/.gimp-1.2/palettes/Bgold: can't happen?
> 
> 
> > This works without a hitch on Solaris 8/SPARC. Well, turns out the
> > default number of file descriptors on Solaris 8/SPARC is 256. On
> > Solaris 7/SPARC, it's 64 (look at output of 'limit' command).
> > Modifying this with:
> >   $ ulimit -n 256
> > solved the problem. To bump the number of file descriptors system
> > wide, add the following to /etc/system:
> >   * set soft limit on file descriptors
> >   set rlim_fd_cur = 256
> 
> Wouldn't it be a good idea to make gimp call setrlimit to fix this if, 
> say, the limit is below 256? And if it turns out the hard limit is to low
> the user should get a warning. 
Without having looked at the code - what do we need that many FDs for?!
We don't need to open all palettes at once, do we?

Bye, Tino.

-- 
 * LINUX - Where do you want to be tomorrow? *
  http://www.tu-chemnitz.de/linux/tag/
 3rd Chemnitzer Linux-Tag from 10th to 11th March 2001 
 at Chemnitz University of Technology!



Re: GIMP 1.2.0 and Solaris 7/SPARC

2000-12-27 Thread Mårten Svantesson

Albert Chin-A-Young <[EMAIL PROTECTED]> writes:

> While trying to run gimp 1.2.0 on Solaris 7/SPARC:
>   $ gimp
> 
>   Gimp-WARNING **: Failed to open palette file
>   /home/china/.gimp-1.2/palettes/Bears: can't happen?
>   Gimp-WARNING **: Failed to open palette file
>   /home/china/.gimp-1.2/palettes/Bgold: can't happen?


> 
> This works without a hitch on Solaris 8/SPARC. Well, turns out the
> default number of file descriptors on Solaris 8/SPARC is 256. On
> Solaris 7/SPARC, it's 64 (look at output of 'limit' command).
> Modifying this with:
>   $ ulimit -n 256
> solved the problem. To bump the number of file descriptors system
> wide, add the following to /etc/system:
>   * set soft limit on file descriptors
>   set rlim_fd_cur = 256

Wouldn't it be a good idea to make gimp call setrlimit to fix this if, 
say, the limit is below 256? And if it turns out the hard limit is to low
the user should get a warning. 

-- 
- Mårten
 
mail: [EMAIL PROTECTED]*** ICQ: 4356928
mobile: +46 (0)707390385  *** phone: +46 (0)8 16 62 29