Giter Site home page Giter Site logo

ProxSpace Slow to Start about proxspace HOT 10 CLOSED

gator96100 avatar gator96100 commented on July 24, 2024
ProxSpace Slow to Start

from proxspace.

Comments (10)

digitalentropy avatar digitalentropy commented on July 24, 2024

Today I seem to be having fewer issues, but I am still unable to identify the source of the delay whenever it happens, other than it being related to an update check. I would note that the problem seems to happen on all sorts of different networks, and I have consistently observed other users having the same problem during workshops.

from proxspace.

Gator96100 avatar Gator96100 commented on July 24, 2024

After the initial update, ProxSpace will not check for updates over the internet, it will only check the cache for updates. Try removing this line yes | pacman -Syuu in ProxSpace/msys2/etc/post-install/09-proxspace.post:55

from proxspace.

digitalentropy avatar digitalentropy commented on July 24, 2024

from proxspace.

Gator96100 avatar Gator96100 commented on July 24, 2024

I see, remove the else before that line too. To my knowledge pacman -Syuu should not access the internet, but I could be wrong

from proxspace.

digitalentropy avatar digitalentropy commented on July 24, 2024

from proxspace.

digitalentropy avatar digitalentropy commented on July 24, 2024

Just a quick update:

I observed the same issue again, even after making the changes to 09-proxspace.post. Whatever is happening, it's happening before any characters are printed to the console.

I might have to actually do some digging and see what, if anything, is calling out.

from proxspace.

Gator96100 avatar Gator96100 commented on July 24, 2024

Does this still happen when you delete 09-proxspace.post? (Delete it after the initial setup of ProxSpace)

from proxspace.

digitalentropy avatar digitalentropy commented on July 24, 2024

So far deleting the file has seemed to significantly reduce start time. I have not yet observed the delay since removing the 09-proxspace.post file but I will continue to monitor.

from proxspace.

Gator96100 avatar Gator96100 commented on July 24, 2024

Replace the 09-proxspace.post with the code below and post the output from ProxSpace. If possible, monitor the CPU usage, IO usage and Network usage during the start up of ProxSpace to check for possible hardware bottlenecks.

check_install () { 
	startPacman2=`date +%s`
	pacman -Q $1
	endPacman2=`date +%s`
	runtimePacman2=$((endPacman2-startPacman2))
	echo "ProxSpace: check_install1($1): $runtimePacman2"
	if [ $? == 1 ]; then
		startPacman3=`date +%s`
		pacman --noconfirm --overwrite='*' -S $1
		endPacman3=`date +%s`
		runtimePacman3=$((endPacman3-startPacman3))
		echo "ProxSpace: check_install2($1): $runtimePacman3"
	fi
}

check_install_web () { 
	pacman -Q $1 | grep $2
	if [ $? == 1 ]; then
		pacman --noconfirm --overwrite='*' -U $3
	fi
}

clean_86 () { 
	startClean86=`date +%s`
	rm -rf /mingw32/share/qt5/examples
	endClean86=`date +%s`
	runtimeClean86=$((endClean86-startClean86))
	echo "ProxSpace: clean86 rm: $runtimeClean86"
	startPacman5=`date +%s`
	pacman --noconfirm --overwrite='*' -Scc
	endPacman5=`date +%s`
	runtimePacman5=$((endPacman5-startPacman5))
	echo "ProxSpace: clean64 pacman: $runtimePacman5"
}

clean_64 () { 
	startClean64=`date +%s`
	rm -rf /mingw64/share/qt5/examples
	endClean64=`date +%s`
	runtimeClean64=$((endClean64-startClean64))
	echo "ProxSpace: clean64 rm: $runtimeClean64"
	startPacman4=`date +%s`
	pacman --noconfirm --overwrite='*' -Scc
	endPacman4=`date +%s`
	runtimePacman4=$((endPacman4-startPacman4))
	echo "ProxSpace: clean64 pacman: $runtimePacman4"
}



setup_proxspace ()
{ 
  if [ "$MSYSTEM" == "MINGW64" ]; then
	check_install mingw-w64-x86_64-gcc
	check_install mingw-w64-x86_64-readline
	check_install git
	check_install make
	check_install pkg-config
	check_install mingw-w64-x86_64-qt5
	clean_64
  fi
  
  if [ "$MSYSTEM" == "MINGW32" ]; then
	check_install mingw-w64-i686-readline
	check_install mingw-w64-i686-gcc
	check_install git
	check_install make
	check_install pkg-config
	check_install mingw-w64-i686-qt5
	clean_86	
  fi
}
startProxSpace=`date +%s`

export LANG=en_US.UTF-8
echo "ProxSpace: start"
if [ "$MAYBE_FIRST_START" = "false" ]; then
	echo "ProxSpace: MAYBE_FIRST_START = FALSE"
	startPacman1=`date +%s`
	yes | pacman -Su
	endPacman1=`date +%s`
	runtimePacman1=$((endPacman1-startPacman1))
	echo "ProxSpace: packages updated in: $runtimePacman1"
	startSetup=`date +%s`
	setup_proxspace
	endSetup=`date +%s`
	runtimeSetup=$((endSetup-startSetup))
	echo "ProxSpace: setup_proxspace finished in: $runtimeSetup"
else
	echo "ProxSpace: MAYBE_FIRST_START = TRUE"
	yes | pacman -Syuu
	echo "ProxSpace: packages updated"
fi

endProxSpace=`date +%s`
runtimeProxSpace=$((endProxSpace-startProxSpace))
echo "ProxSpace: runtimeProxSpace:$runtimeProxSpace"

from proxspace.

Gator96100 avatar Gator96100 commented on July 24, 2024

Starting with ProxSpace 3.3 this should no longer be an issue.

from proxspace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.