TMPDIR issues

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

TMPDIR issues

Gerhard Hoogterp
Hi,

Quick question.. Is there a setting or a simple way to use an alternative
TMPDIR with digikam?

Where my /tmp is normaly more than adequate, for some (stitching panorama's)
it's simply to small. As I have partitions with more than enough space I'm
hoping I overlooked a photoshop or GIMP option to set an TMP and/or swap path
from within digikam.

(and if there's no such thing, may I suggest it as a feature for a future
version?)

Thanks,
 Gerhard

--
My blog: http://www.funsite.eu/
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: TMPDIR issues

Gilles Caulier-4
No. There is not yet a way to switch tmp to a dedicated place.

I build too some very large pano. I allocated 20Gb in a SSD to /tmp

Gilles Caulier

2015-01-22 21:43 GMT+01:00 Gerhard Hoogterp <[hidden email]>:

> Hi,
>
> Quick question.. Is there a setting or a simple way to use an alternative
> TMPDIR with digikam?
>
> Where my /tmp is normaly more than adequate, for some (stitching panorama's)
> it's simply to small. As I have partitions with more than enough space I'm
> hoping I overlooked a photoshop or GIMP option to set an TMP and/or swap path
> from within digikam.
>
> (and if there's no such thing, may I suggest it as a feature for a future
> version?)
>
> Thanks,
>  Gerhard
>
> --
> My blog: http://www.funsite.eu/
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: TMPDIR issues

Veaceslav Munteanu-2
>> Where my /tmp is normaly more than adequate, for some (stitching panorama's)
>> it's simply to small. As I have partitions with more than enough space I'm
>> hoping I overlooked a photoshop or GIMP option to set an TMP and/or swap path
>> from within digikam.

the easiest way is to create a large partition and mount that partition as /tmp

look for fstab syntax, you can mount different partitions for /boot ,
/home, /tmp ... etc.


>> (and if there's no such thing, may I suggest it as a feature for a future
>> version?)
>>
>> Thanks,
>>  Gerhard
>>
>> --
>> My blog: http://www.funsite.eu/
>> _______________________________________________
>> Digikam-users mailing list
>> [hidden email]
>> https://mail.kde.org/mailman/listinfo/digikam-users
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: TMPDIR issues

Gerhard Hoogterp
On Thursday, January 22, 2015 10:49:51 PM Veaceslav Munteanu wrote:
> >> Where my /tmp is normaly more than adequate, for some (stitching
> >> panorama's) it's simply to small. As I have partitions with more than
> >> enough space I'm hoping I overlooked a photoshop or GIMP option to set
> >> an TMP and/or swap path from within digikam.
>
> the easiest way is to create a large partition and mount that partition as
> /tmp

That's the easy way when you install a new machine where the disks still have
to be partitioned and all options are still open..

On an old and fully used machine like mine I'm afraid that Gilles's solution
is the only solution. Create a tmp dir somewhere where there's space and
softlink it to /tmp..  

I do hope one day for a setting for this, maybe I better check the bugtracker
if there are points to give for such a feature..;-)

Thanks,
        Gerhard
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: TMPDIR issues

Veaceslav Munteanu-2
On Thu, Jan 22, 2015 at 10:55 PM, Gerhard Hoogterp
<[hidden email]> wrote:

> On Thursday, January 22, 2015 10:49:51 PM Veaceslav Munteanu wrote:
>> >> Where my /tmp is normaly more than adequate, for some (stitching
>> >> panorama's) it's simply to small. As I have partitions with more than
>> >> enough space I'm hoping I overlooked a photoshop or GIMP option to set
>> >> an TMP and/or swap path from within digikam.
>>
>> the easiest way is to create a large partition and mount that partition as
>> /tmp
>
> That's the easy way when you install a new machine where the disks still have
> to be partitioned and all options are still open..
>
> On an old and fully used machine like mine I'm afraid that Gilles's solution
> is the only solution. Create a tmp dir somewhere where there's space and
> softlink it to /tmp..
>
> I do hope one day for a setting for this, maybe I better check the bugtracker
> if there are points to give for such a feature..;-)

I believe that digiKam uses hugin to make panoramas, so it is not done
internally -> we can't make it choose the /tmp dir.

Better make a soft link.
> Thanks,
>         Gerhard
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: TMPDIR issues

Bugzilla from dan@berrange.com
In reply to this post by Veaceslav Munteanu-2
On Thu, Jan 22, 2015 at 10:49:51PM +0100, Veaceslav Munteanu wrote:
> >> Where my /tmp is normaly more than adequate, for some (stitching panorama's)
> >> it's simply to small. As I have partitions with more than enough space I'm
> >> hoping I overlooked a photoshop or GIMP option to set an TMP and/or swap path
> >> from within digikam.
>
> the easiest way is to create a large partition and mount that partition as /tmp

Actually easier to not create a dedicated partition for /tmp as either you'll
make it too small and run out of space, or you'll make it way too large and
thus be wasting space. Instead just use a bind mount from another partition
which has free space + decent speed

eg, i have an SSD setup on /home so I could do

  mkdir /home/tmp
  mount --bind /home/tmp /tmp

Now I don't have to make any decision about how much space of the SSD to
set aside for /tmp. Also means you don't have pain of resizing partitions
for an existing installed machine.

Regards,
Daniel
--
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: TMPDIR issues

Rex Dieter
In reply to this post by Gerhard Hoogterp
Gerhard Hoogterp wrote:

> Hi,
>
> Quick question.. Is there a setting or a simple way to use an alternative
> TMPDIR with digikam?
>
> Where my /tmp is normaly more than adequate, for some (stitching
> panorama's) it's simply to small.

Is /tmp hard-coded somewhere?  If so, where exactly?

Full disclosure: If yes, I will likely need to patch fedora builds to use
something else (probably /var/tmp), since fedora's default /tmp is tmpfs,
which is unsuitable for anything non-trivial in size.

-- Rex

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: TMPDIR issues

Gilles Caulier-4
No. We use KDE APi to manage temporary files which wrap tmp location
to /tmp under Linux.

Gilles Caulier

2015-01-25 1:09 GMT+01:00 Rex Dieter <[hidden email]>:

> Gerhard Hoogterp wrote:
>
>> Hi,
>>
>> Quick question.. Is there a setting or a simple way to use an alternative
>> TMPDIR with digikam?
>>
>> Where my /tmp is normaly more than adequate, for some (stitching
>> panorama's) it's simply to small.
>
> Is /tmp hard-coded somewhere?  If so, where exactly?
>
> Full disclosure: If yes, I will likely need to patch fedora builds to use
> something else (probably /var/tmp), since fedora's default /tmp is tmpfs,
> which is unsuitable for anything non-trivial in size.
>
> -- Rex
>
> _______________________________________________
> Digikam-users mailing list
> [hidden email]
> https://mail.kde.org/mailman/listinfo/digikam-users
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: TMPDIR issues

Rex Dieter
Gilles Caulier wrote:

> No. We use KDE APi to manage temporary files which wrap tmp location
> to /tmp under Linux.

OK, so back to the original post, try setting KDETMP ?

See
https://techbase.kde.org/KDE_System_Administration/KDE_Filesystem_Hierarchy

-- Rex

> Gilles Caulier
>
> 2015-01-25 1:09 GMT+01:00 Rex Dieter
> <[hidden email]>:
>> Gerhard Hoogterp wrote:
>>
>>> Hi,
>>>
>>> Quick question.. Is there a setting or a simple way to use an
>>> alternative TMPDIR with digikam?
>>>
>>> Where my /tmp is normaly more than adequate, for some (stitching
>>> panorama's) it's simply to small.
>>
>> Is /tmp hard-coded somewhere?  If so, where exactly?
>>
>> Full disclosure: If yes, I will likely need to patch fedora builds to use
>> something else (probably /var/tmp), since fedora's default /tmp is tmpfs,
>> which is unsuitable for anything non-trivial in size.

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: TMPDIR issues

Gerhard Hoogterp
On Sunday, January 25, 2015 06:41:35 AM Rex Dieter wrote:
> Gilles Caulier wrote:
> > No. We use KDE APi to manage temporary files which wrap tmp location
> > to /tmp under Linux.
>
> OK, so back to the original post, try setting KDETMP ?
>

I ended up putting an export TMPDIR= in my personal .profile which solves my
issue for now.

But still, having a gigantic tmp partition for the occasional panorame of
video doesn't seems to be the way imho. Having a setting in "tmpdir hungry"
apps like gimp and photoshop  have seems a nicer solution.

Nevertheless, i'm good for now..

Thanks,
 Gerhard
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users