Fix SMART Notebook gallery slow loading.

13 views
Skip to first unread message

DeanMontgomery

unread,
Oct 30, 2012, 12:47:44 PM10/30/12
to bcf...@googlegroups.com
SMART Board Notebook gallery is very slow loading on linux over an NFS share.  Using strace I was able to track down that it's indexing system is very very poor over NFS.  I put in a ticket with Smart Technology and they acknowledged the problem but were not willing to do anything about it. (Gotta love closed source apps).  I resolved the issue by symlinking the indexes onto a tmpfs file system.  Below are two scripts that will auto-patch the indexes at login.  Given that /tmp is mounted as a tmpfs in /etc/fstab.



======================================
/etc/xdg/autostar/sd73-fast-gallery.desktop
======================================
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Fast Gallery
Comment=SD73 Fast Gallery - moves SMART Notebook gallery cache files to /tmp to fix NFS loading bug.
Exec=/usr/local/bin/sd73-fast-gallery
Terminal=false
Type=Application
NoDisplay=true


======================================
/usr/local/bin/sd73-fast-gallery
======================================
#!/bin/sh
# fix slow SMART Notebook Gallery by moving cache files to /tmp
# Author: Dean M.
# Date: Sept 17, 2012

cd $HOME

CONF=".SMART Technologies Inc/SMART Board Software"
TMP="/tmp/$USER-Gallery"

mkdir -p "$CONF/GalleryContent"


# User has run notebook and it has created a Gallery folder.
if [ ! -h "$CONF/Gallery" ]; then
  if [ -d "$CONF/Gallery" ]; then
    if [ -d "$CONF/Gallery/My Content" ]; then
      cd "$CONF/Gallery/My Content/"
      cp * ../../GalleryContent/
      cd $HOME
      rm -fr "$CONF/Gallery"
    fi
  fi
fi

if [ ! -d "$TMP" ]; then
  mkdir -p $TMP
  ln -s "$HOME/$CONF/GalleryContent" "$TMP/My Content"
  if [ ! -h "$CONF/Gallery" ]; then
    rm -fr "$CONF/Gallery"
    ln -s $TMP "$CONF/Gallery"
  fi
fi

Reply all
Reply to author
Forward
0 new messages