Issue with VPN

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

Issue with VPN

Stühler, Martin

Dear all,

 

I have some runtime issue with wingw32-make.exe, when I´m work at home and connected through VPN to the company. The issue is, that the mingw32-make.exe always want to connect (TCP) something to any internal company network and this makes the hole runtime very slow.

 

If I change the DNS for example to 8.8.8.8 at my network card, then the mingw-make.exe doesn´t start to connect a TCP to anything and the process is fast.

 

Is there a way, that mingw-make.exe can be used with VPN or is there solution to setup anything to change the network address for mingw-make.exe?

 

 

Best regards,

 

Mit freundlichen Grüßen

 

Martin Stühler

Dipl.Ing.(FH)

Entwicklung

Phone:   +49 6043 9645-42

Fax:     +49 6043 4365

 

 

Reichhardt GmbH Steuerungstechnik

Hofgut Ringelshausen, 35410 Hungen, Germany

www.reichhardt.com

Amtsgericht Gießen, HRB 104798

Geschäftsführer/CEO:  Dipl.Ing.agr. Andreas Reichhardt, Dr.-Ing. Thomas Pohlmann

 

 

http://www.hofgut-ringelshausen.de/images/user/pages/1/finduson_fb.png     Hofgut Ringelshausen      Reichhardt Gruppe        RTK CLUE

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Issue with VPN

Paul Smith-20
On Thu, 2021-01-07 at 18:01 +0000, Stühler, Martin wrote:
> I have some runtime issue with wingw32-make.exe, when I´m work at
> home and connected through VPN to the company. The issue is, that the
> mingw32-make.exe always want to connect (TCP) something to any
> internal company network and this makes the hole runtime very slow.

GNU make has no network interface at all; it never tries to do a
hostname lookup or connect to another system.

If something is trying to connect to the network when you invoke make,
then it must be some recipe in one of your makefiles is running a
program that tries to connect to the network for some reason, and
there's little we can do to help you with that.

You should investigate your makefiles to try to determine what command
is making things slow.  One way to do it would be to run your build
with the "-d" option and when the build seems to slow down or hang then
see what command is being invoked.


Reply | Threaded
Open this post in threaded view
|

Re: AW: Issue with VPN

Paul Smith-20
Hi Martin; please always reply to the mailing list: this allows
everyone else to help.  Also, we try to use "inline replies" on the
mailing lists, rather than "top-posting" replies.

On Fri, 2021-01-08 at 08:59 +0000, Stühler, Martin wrote:
> Dear Paul,
>
> Thanks for your fast response. I saw, that the outputs are very slow.
> Therefore I changed the command @echo to $info() and this was a huge
> performance different.

If echo is very slow, then you must have something strange about your
environment.  Simply using trial-and-error to try to work around this
problem is unlikely to be successful: you need to investigate the
issue, understand it, and then decide how to mitigate it.

Are you absolutely sure it was the echo that was slow, and not some
other aspect of the makefile?

Is it slow to run "echo" from your shell prompt?

Maybe there's some directory on your PATH before common paths such as
/bin and /usr/bin which is very slow to access, perhaps due to being
remotely mounted via NFS or similar?  If the slowness happens only in
the context of a makefile maybe the makefile is resetting the PATH?

Do your makefiles reset the SHELL variable to something else?  Maybe
this has an impact?

Does your makefile set up LD_PRELOAD for example, which may overload
some common C runtime functions to perform extra operations which are
slow?

It's unlikely that we'll be able to help you much.  This problem is not
related to make at all: it's specific to your environment.

As a last resort, if you're using GNU/Linux you can try running your
build (or, hopefully, some small part of your build) under the strace
program (see the web for docs, or use "man strace").  You will want to
use the -f or -ff option to trace the programs invoked by make, and
you'll likely want to use the -r or -t (or variant) options to show the
timestamps for invoking system calls.

Be aware, the output here will be VOLUMINOUS especially the more of
your build you run.  If you use -ff you'll generate multiple files, as
well.  Once you have this info you'll have to search it to see which
system calls seem to be taking a long time to run.

> Question. Is there a change to optimize the function cp and rm?

There is no built-in make functions that can perform file copy or
remove operations.


Reply | Threaded
Open this post in threaded view
|

Re: AW: Issue with VPN

Gnu - Make - Bugs mailing list
> Question. Is there a change to optimize the function cp and rm?

In bash (in recipe lines) you can replace cp with
echo "$(<src)" >dst

in make you can replace cp with
$(file >dst,$(file <src))

When i write a makefile for a lib which installs multiple header files
i like using rsync over install or cp.
This relieves make from having to check the timestamp of each header
file in order to decide whether to copy it.
rsync does the check and avoids unnecessary copy and works fast.


regards, Dmitry

Reply | Threaded
Open this post in threaded view
|

Re: AW: Issue with VPN

Paul Smith-20
On Tue, 2021-01-12 at 10:20 -0500, Dmitry Goncharov wrote:
> In bash (in recipe lines) you can replace cp with
> echo "$(<src)" >dst

If you use this you must set the make variable SHELL to /bin/bash.

Also, if running "echo hi" is slow then I assume this would also be
slow.

> in make you can replace cp with
> $(file >dst,$(file <src))

This will work for text files but it won't work for binary files.

Cheers!


Reply | Threaded
Open this post in threaded view
|

AW: AW: Issue with VPN

Stühler, Martin
Hi Paul,

many thanks for you support.

Mit freundlichen Grüßen

Martin Stühler
Dipl.Ing.(FH)
Entwicklung
Phone:   +49 6043 9645-42
Fax:     +49 6043 4365


Reichhardt GmbH Steuerungstechnik
Hofgut Ringelshausen, 35410 Hungen, Germany
www.reichhardt.com
Amtsgericht Gießen, HRB 104798
Geschäftsführer/CEO:  Dipl.Ing.agr. Andreas Reichhardt, Dr.-Ing. Thomas Pohlmann



     Hofgut Ringelshausen      Reichhardt Gruppe        RTK CLUE


-----Ursprüngliche Nachricht-----
Von: Paul Smith <[hidden email]>
Gesendet: Dienstag, 12. Januar 2021 16:53
An: bug-make <[hidden email]>; Stühler, Martin <[hidden email]>
Betreff: Re: AW: Issue with VPN

On Tue, 2021-01-12 at 10:20 -0500, Dmitry Goncharov wrote:
> In bash (in recipe lines) you can replace cp with echo "$(<src)" >dst

If you use this you must set the make variable SHELL to /bin/bash.

Also, if running "echo hi" is slow then I assume this would also be slow.

> in make you can replace cp with
> $(file >dst,$(file <src))

This will work for text files but it won't work for binary files.

Cheers!