mc startup slow on slackware64-current
Hi,
I just installed a fresh Slackware64-current. mc starts up quite slow, compare with previous version. Anybody encounter the same problem? |
I don't use mc often. But it is super slow starting up on -current for me too. There's a select that it gets stuck on for 10 seconds.
The select times out and startup continues. Seems like a bug. |
Quote:
Ditto. |
No problems with mc here on Slackware --Current x64. The program starts almost instantaneously.
|
I'm also not experiencing any problems with startup time for mc on Slackware64 -current. It starts up right away for me.
|
I do experience slow startup time as well. I'm not sure but seems to have something to do with whether I'm online or offline.
|
Same problem here, but occasionally and only on 1 of the three PC I hold.
|
On my laptop, when it's on a network (ie - almost all the time), it's fast. I'm busy rebuilding my server at home, and it's off the network, and definitely has a huge lag. Quite frustrating actually. Especially when you're trying to recover data from various USB devices and using mc a lot.
|
Had something like that on 14.1 it was network related, perhaps hostname and resolv.conf were not set properly.
I had compiled a new mc from current, with --disable-netcode No problem since then. |
This sort of thing can often be down to dns lookups against the hostname or reverse lookups against the primary network interface address. Slackware's netconfig script puts the ipv4 address associated with the hostname in /etc/hosts, but does nothing for the corresponding ipv6 address.
Assuming ipv6 hasn't been disabled, I find that adding the ipv6 address to /etc/hosts can often help avoid the delays associated with this sort of external dns lookup: which is especially important if, like me, you use a made-up/unresolvable domain name for your local net or often work off-net. e.g. Code:
# For loopbacking. Give it a go, see if it helps. |
My slackware64-14.1 with mc-4.18.13 starts instantly, if I compile the mc-4.18.14 from current source, mc starts slowly. Seems something in 4.18.14 breaks.
I tried #GazL's method, without success. I tried bring down all my network interface, only have lo active, still the same. |
OK, I found the problem. It was also reported here #3534.
It is because of the PROMPT_COMMAND definition I used. I am using hh (shell history suggest box), and with its recommendation of settings, which is: export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}" Which results in broken subshell and hence the slow down. |
After I read that bug report, since I don't use mc much, I did removepkg mc.
That's crazy stuff in that report. The fix is to change your prompt. That is known as the tail wagging the dog. It has nothing to do with the delay I see. Glad it solved your problem though. |
Quote:
Modifying $PROMPT_COMMAND is not the fix to the problem, it's only a workaround until the devs decide how to approach the problem. At this point they're still discussing it. I'm sorry, but I don't see the tail wagging the dog. :) |
Quote:
I just fired up mc in a console and it took 12 seconds on -current, a fresh install just the day before yesterday and updated through this morning. |
All times are GMT -5. The time now is 10:08 PM. |