The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Why, oh why can't the Ethernet graph, in the Performance tab in Task Manager, on a Hyper-V host, show the downloads taking place on VMs it hosts?
Right now my router's bandwidth monitor shows some machine is downloading stuff as fast as my bandwidth allows. I currently (finally) happen to know which machine it is - it's one of my VMs; on it, Task Manager shows the bandwidth being maxed out. Great. At least I know.
Only, Task Manager, on the host, doesn't show any activity. The VM is still ultimately using the same physical NIC to talk to the outside world, so why isn't this being reflected on the host bandwidth usage?
If it did, it would have been a lot easier for me to determine what device, on my LAN, is sucking up all the bandwidth. It would've isolated the VMs from the rest of my devices.
Between my phone, my tablets, my laptops, the system on my desk and my VM host, sometimes it's pretty difficult downright impossible to determine who's hogging (for starters - and then there's the "why")...
We've just started a new month. Already I can see that, since midnight (it's currently 11:00am) I've burned through almost 10GB, and I'm actually not actively downloading anything. These are my devices, left to their own devices (so to speak).
thats because VM's communicate to/from the NIC driver, not the host network interface. drivers are not part of the operating system. It's possible for a VM to load a driver for some hardware item [plugged into the host] that the host has no clue about what it is. It's why a say win 7 VM still needs it's own USB 3 drivers to talk to USB 3 ports on the host.
(it makes networking easier for hosts and VM's to talk to each other and the outside world without [lookup/translation] kludgery or some worst case scenario of simulation resulting in TCP packetised TCP packets.) It's made possible if you can recall from computer science the 7 layers of network interface.
(by the way, it's also the reason why VPN's work - they only way some sites can detect VPN's is because they have a list of VPN provider's - not because they can detect the fakery/translations from the data.)
but yes, some other things things complicate that, doesn't work with display, disk, keyboard - partially because those don't have nice i.e. "x layer" interfaces, - the VM has to honor the host's control (consider disk allocation: disk free space tables are cached in host's operating memory, so if a VM wants to grow it's dynamic disk it has to ask the host - otherwise all hell would break loose.)
after many otherwise intelligent sounding suggestions that achieved nothing the nice folks at Technet said the only solution was to low level format my hard disk then reinstall my signature. Sadly, this still didn't fix the issue!
Right click on the list entry in Hyper-V manager and scroll down to the Network Adapter add a unique "VLAN ID" to each virtual machine. Then you can more easily measure bandwidth from your gateway and identify which virtual machine is generating the traffic.
The Python seems more readable that the statement with a ternary expression. I have just started learning python, but the `if/else` is very clear to me.
"'Do what thou wilt...' is to bid Stars to shine, Vines to bear grapes, Water to seek its level; man is the only being in Nature that has striven to set himself at odds with himself."
The different order of notation doesn't seem that worthy of a WTF. That's just a bit getting used to, nothing more.
The real WTFs with Python I've seen are negative notation for hexadecimal numbers instead of two's complement and the inability to find the entry point in anything remotely complex because Python doesn't have a main method, it's just a script language evaluating from the top. Doesn't help when debugging control flow.