Setting maximum speed of ethernet adapter
-
Hi, I need to set the maximum speed of network card programatically, eg. when my program is running on machine with 100mbps network card, I need to set it's maximum speed to 10mbps. Any suggestion helps much. Standa.
:wtf: s_k wrote: when my program is running on machine with 100mbps network card, I need to set it's maximum speed to 10mbps. :confused: Why would you want to do this? Most 100Mbps NICs are auto-negotiate. That is, if the server or target machine only runs 10Mbps or your router or hub is only 10Mbps, then the NIC will only negotiate 10Mbps on the hardware abstraction layer with no intervention from the OS, let alone your program. Now, if you are writing some proprietary device driver for an ethernet coffee machine or something and really need to do this, then I must admit I am out of my league. - Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
-
:wtf: s_k wrote: when my program is running on machine with 100mbps network card, I need to set it's maximum speed to 10mbps. :confused: Why would you want to do this? Most 100Mbps NICs are auto-negotiate. That is, if the server or target machine only runs 10Mbps or your router or hub is only 10Mbps, then the NIC will only negotiate 10Mbps on the hardware abstraction layer with no intervention from the OS, let alone your program. Now, if you are writing some proprietary device driver for an ethernet coffee machine or something and really need to do this, then I must admit I am out of my league. - Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
-
I admit it sounds strange, but I've FTP server that is too fast for weak machine (max. 32 MB RAM) with Win9x and on fast (at least 100mbps) LAN. The only thing that helps is to slow down the receiving/sending of data (to 10mbps). Hope you grasped ;)
Are you saying that the FTP program is consuming too many resources that you wish to use? If so, you might try lowering the priority of the FTP server. Then it won't consume CPU resources while you wish to use the machine. Tim Smith I'm going to patent thought. I have yet to see any prior art.
-
Are you saying that the FTP program is consuming too many resources that you wish to use? If so, you might try lowering the priority of the FTP server. Then it won't consume CPU resources while you wish to use the machine. Tim Smith I'm going to patent thought. I have yet to see any prior art.
-
s_k wrote: It may help as well, but not sure if it is 100% solution... :rolleyes: Well, you can always upgrade the machine :cool: A nice P4 with a gig of ram or two should suffice... ;P - Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
-
I admit it sounds strange, but I've FTP server that is too fast for weak machine (max. 32 MB RAM) with Win9x and on fast (at least 100mbps) LAN. The only thing that helps is to slow down the receiving/sending of data (to 10mbps). Hope you grasped ;)
-
s_k wrote: It may help as well, but not sure if it is 100% solution... :rolleyes: Well, you can always upgrade the machine :cool: A nice P4 with a gig of ram or two should suffice... ;P - Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
-
s_k wrote: The only thing that helps is to slow down the receiving/sending of data (to 10mbps). ...or reprogramming your network core ;)
-
I admit it sounds strange, but I've FTP server that is too fast for weak machine (max. 32 MB RAM) with Win9x and on fast (at least 100mbps) LAN. The only thing that helps is to slow down the receiving/sending of data (to 10mbps). Hope you grasped ;)
eh - too fast? how can it be too fast? resources memory usage? have you tired other ftp sever versions maybe find one that is less resource hungry. easier way change the network card to a 10mbps only one
Technically speaking the dictionary would define Visual Basic users as programmers.
But here again, a very generalized, liberal definition is being employed and it's wrong
- just plain wrong - Tom Archer 5/12/02 -
eh - too fast? how can it be too fast? resources memory usage? have you tired other ftp sever versions maybe find one that is less resource hungry. easier way change the network card to a 10mbps only one
Technically speaking the dictionary would define Visual Basic users as programmers.
But here again, a very generalized, liberal definition is being employed and it's wrong
- just plain wrong - Tom Archer 5/12/02However it may sound strange, it's true. Yes, I've already tried other FTP servers - but they are much smaller than the our one. I think it's caused by that most of them is written in Delphi, whereas we wrote it in C++, and it's really difference... I remark again - it only appears on VERY weak machines, ONLY on Win9x and ONLY on fast LANs( at least 100mbps).