|
I kind of know all that but I thought gcc would do something like: transform 4 generic instructions into a single one that do the same thing in a single clock loop instead of 4, and this single instruction is only present on one of the two processors. And in my head gcc would do this without the developers needing to set anything on the configure or make files. I guess I was way off. Funnily enough I'm pretty sure I did have 3dnow set on my installation, checking processor capabilities and setting USE flags accordingly is one of the steps on a gentoo installation. E: also, I remember having a problem when I migrated from one AMD that had "sse2" or something to another that didn't have it but was also AMD, and I had problems with mplayer until I fixed the USE flags and installed mplayer again. This time around not even that was a problem. E: basically I didn't know the application had to explicitly support mtune or march program666 fucked around with this message at 16:51 on Mar 13, 2015 |
# ? Mar 13, 2015 16:43 |
|
|
# ? May 18, 2024 10:19 |
|
And all compilers will have switches at runtime to determine whether it can run the latest SSSSEAVX5 or whatever and if not, fall back to a slightly slower path.
|
# ? Mar 13, 2015 16:45 |
|
program666 posted:You mean arch? Yeah. It's trucked on through a complete system upgrade from Pentium 4 to Phenom II, several system drives and a migration to SSD, and several major system changes (including migrating to systemd) with surprisingly little trouble.
|
# ? Mar 13, 2015 17:22 |
|
I have lots of trouble with gentoo upgrades from time to time, never did a full system upgrade though, but sometimes when you have to upgrade python or something I have loads of trouble. But it could be very well be because I'm loving incompetent, I'm really lazy and just learn a bit less than the bare minimum than I should to maintain my gentoo lol.
|
# ? Mar 13, 2015 17:30 |
|
program666 posted:I kind of know all that but I thought gcc would do something like: transform 4 generic instructions into a single one that do the same thing in a single clock loop instead of 4, and this single instruction is only present on one of the two processors. And in my head gcc would do this without the developers needing to set anything on the configure or make files. I guess I was way off. Almost zero packages use 3dnow. But you're right in one sense: gcc does transform complex C into less complex assembler that does the same thing. But that one instruction isn't any different between Intel and AMD. There's a lot of branch prediction and logic actually happening on the CPU when it pulls instructions off the cache. But how processors work is way out of scope here, and I don't have time to write a long post at the moment. I'd suggest looking up "branch prediction", "instruction pipeline", "cache miss", "out of order execution", and a few other phrases if you want to learn why some processors are faster than others clock-for-clock. Pipeline length for various CPU families is easy to find out. mtune and march don't need application support. Sometimes SSE needs application support, along with some other use flags. 3dnow almost always needs application support.
|
# ? Mar 13, 2015 17:52 |
|
GCC being able to autovectorize is fairly recent. GCC would not autovectorize to MMX/3DNow! because it's not 1992.
|
# ? Mar 13, 2015 17:59 |
|
Suspicious Dish posted:GCC being able to autovectorize is fairly recent. GCC would not autovectorize to MMX/3DNow! because it's not 1992. Sorry, didn't mean to be confusing. I didn't mean autovectorization by "transform complex...". I meant that even conservative optimization will do away with noops and empty loops, and aggressive optimization can lead to very different intermediate code.
|
# ? Mar 13, 2015 18:07 |
|
KozmoNaut posted:Still on my (rolling release upgraded) 2009 installation I'd love to see the output of code:
Your system might still boot, but that doesn't mean it isn't a completely awful mess. This is sort of unavoidable with rolling release systems. Coming from an Arch and Gentoo user (who has kept his Gentoo install for a similarly long time). PS) Not actually saying to post the output of that. It's probably REALLY, REALLy, REALLY long. program666 posted:I have lots of trouble with gentoo upgrades from time to time, never did a full system upgrade though, but sometimes when you have to upgrade python or something I have loads of trouble. But it could be very well be because I'm loving incompetent, I'm really lazy and just learn a bit less than the bare minimum than I should to maintain my gentoo lol. Unless you use Gnome or KDE, system updates rarely break anymore. And by anymore, I mean in the past year and a half. It's really improved dramatically. Don't be afriad! nosl fucked around with this message at 21:19 on Mar 13, 2015 |
# ? Mar 13, 2015 21:17 |
|
I remembered coming across this article a while ago, and thought it's worth posting: How does systemd relate to Plasma? (Plasma is the desktop environment that's the basis of KDE.) Gist of it is "A lot of that stuff that systemd provides would be really nice to use, and it defeats the purpose if we need to be able to fall back to older implementations of these things, since we're just adding one more case to a trainwreck of an abstraction layer". quote:Logind is a tiny daemon that keeps track of seats and sessions on your machine. quote:In many cases [hooking into systemd for things] allows us to throw away large amounts of code whilst at the same time providing a better user experience. Adding it as an optional extra defeats the main benefit.
|
# ? Mar 13, 2015 21:59 |
|
nosl posted:I'd love to see the output of /usr is ~9,6G, /etc is ~20M, so there can't be too much cruft hiding in the corners. I have done a bit of manual cleaning-up from time to time, purging config files etc. for applications that aren't installed anymore. Is it pristine like a brand new install? No, but it's running perfectly, with no odd behavior. I used Gentoo before Arch, and believe me, Gentoo was 100x worse.
|
# ? Mar 13, 2015 23:29 |
|
So against my better judgement I'm going to peek my head into the TOR "Deep Web" which is apparently the wild west. Whats the most recommended way to browse this poo poo without getting wrecked by some script kid? Would using a VM with a minimal distro suffice or is running off of a LiveCD the only way to play it safe? What distro is the most secure for this? Tails?
|
# ? Mar 15, 2015 16:57 |
|
You're not going get hacked unless you do something incredibly dumb but using TAILS is pretty standard. Throw it in a VM but I'll guarantee the darkweb is a lot less exciting than you think it is.
|
# ? Mar 15, 2015 17:17 |
|
YouTuber posted:So against my better judgement I'm going to peek my head into the TOR "Deep Web" which is apparently the wild west. Whats the most recommended way to browse this poo poo without getting wrecked by some script kid? Would using a VM with a minimal distro suffice or is running off of a LiveCD the only way to play it safe? Tails is the most secure method, yes. But if you're just looking to poke around a bit, torbrowser is less trouble. Or if you're feeling particularly adventurous, you can always set up a Raspberry Pi as an anonymizing middlebox and then use any device you want. Also, Tab8715 posted:I'll guarantee the darkweb is a lot less exciting than you think it is. This is true.
|
# ? Mar 15, 2015 18:02 |
|
Remember, VPN -> TOR = Go to Jail
|
# ? Mar 15, 2015 22:11 |
|
Bhodi posted:Remember, VPN -> TOR = Go to Jail How so?
|
# ? Mar 15, 2015 22:57 |
|
I'm trying to set up a 64-bit Linux VM on VirtualBox. AMD-V is enabled, and I've double-checked it and looked at cpuinfo too. However, VirtualBox just isn't letting me set up 64-bit VMs. What gives?
|
# ? Mar 16, 2015 03:00 |
|
karl fungus posted:I'm trying to set up a 64-bit Linux VM on VirtualBox. AMD-V is enabled, and I've double-checked it and looked at cpuinfo too. However, VirtualBox just isn't letting me set up 64-bit VMs. What gives? What is the host OS? It seems odd to bring up in this day and age, but it should be noted that a 32-bit host cannot run 64-bit guests.
|
# ? Mar 16, 2015 05:11 |
|
Tab8715 posted:How so? Lots of words about it here: https://trac.torproject.org/projects/tor/wiki/doc/TorPlusVPN
|
# ? Mar 16, 2015 05:17 |
|
CaptainSarcastic posted:What is the host OS? Latest 64-bit Xubuntu
|
# ? Mar 16, 2015 05:25 |
|
karl fungus posted:I'm trying to set up a 64-bit Linux VM on VirtualBox. AMD-V is enabled, and I've double-checked it and looked at cpuinfo too. However, VirtualBox just isn't letting me set up 64-bit VMs. What gives? What kind of errors are you getting? I'm assuming the iso is refusing to boot? Also, have you installed any other virtualization software?
|
# ? Mar 16, 2015 06:08 |
|
I am planning to start hosting a blog (with little to no traffic) as a home server project. Can anyone recommend some good software? Any general security tips for a first time Web host are also welcome.
|
# ? Mar 16, 2015 06:48 |
|
Death Vomit Wizard posted:I am planning to start hosting a blog (with little to no traffic) as a home server project. Can anyone recommend some good software? Any general security tips for a first time Web host are also welcome. Security tips: keep your poo poo up-to-date and don't use easily-cracked passwords. WordPress's auto-updater is so easy to use that there's positively no reason not to always be patched. A few years ago, there would have also been about ten paragraphs here explaining why PHP security is terrible and why you should change every setting away from some insecure default, but nowadays the default settings from most distro packages are pretty sane. Vulture Culture fucked around with this message at 06:57 on Mar 16, 2015 |
# ? Mar 16, 2015 06:55 |
|
karl fungus posted:I'm trying to set up a 64-bit Linux VM on VirtualBox. AMD-V is enabled, and I've double-checked it and looked at cpuinfo too. However, VirtualBox just isn't letting me set up 64-bit VMs. What gives? A little digging turned this up, which might help. https://forums.virtualbox.org/viewtopic.php?f=6&t=57926
|
# ? Mar 16, 2015 14:21 |
|
karl fungus posted:Latest 64-bit Xubuntu Is kvm-amd loaded?
|
# ? Mar 16, 2015 14:29 |
|
Misogynist posted:WordPress is your default option; only use something else if you have a really good reason to. It's probably fastest to get off the ground with Apache and mod_php, but running PHP through Nginx+FPM would also be a good exercise. Be aware that WordPress' auto-updater only works on WordPress itself, not on WordPress themes and plug-ins (which is where about 99% of security issues with WordPress really are, these days). So you'll still need to look at your site and update things every so often. It's just a couple button clicks, but you do have to remember to click those buttons on occasion.
|
# ? Mar 16, 2015 16:12 |
|
Thank you both. Wordpress it is, then. Also, Nginx + PHP-FPM looks rad.
|
# ? Mar 16, 2015 18:41 |
|
evol262 posted:Is kvm-amd loaded? I don't know, how do I check? By the way, here's the list of flags for each core via /proc/cpuinfo: quote:flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt arat cpb hw_pstate npt lbrv svm_lock nrip_save pausefilter vmmcall
|
# ? Mar 16, 2015 21:09 |
|
karl fungus posted:I don't know, how do I check? lsmod Flags are fine. You haven't been able to buy an AMD processor without SVM since socket 939 almost 10 years ago. But kvm_amd and vboxdrv are orthogonal (really, all hardware virt extensions are orthogonal, but...). You have to rmmod kvm_amd if it's loaded and you want to use vbox.
|
# ? Mar 16, 2015 21:44 |
|
evol262 posted:lsmod I have kvm, but not kvm_amd.
|
# ? Mar 16, 2015 21:46 |
|
Can anyone recommend a cross-platform encryption solution for an external HDD? I have a laptop running Mint and a desktop running Win7, and I would like to be able to use the drive (as seamlessly as possible) between both machines, but also have the entire drive encrypted.
|
# ? Mar 16, 2015 22:04 |
|
karl fungus posted:I have kvm, but not kvm_amd. Output of lsmod, please
|
# ? Mar 16, 2015 22:34 |
|
evol262 posted:Output of lsmod, please code:
|
# ? Mar 16, 2015 23:07 |
|
I have to cross-post this, it's too good not to share with you guys and especially evolpseudorandom name posted:Matthew Garrett @mjg59 · Mar 13
|
# ? Mar 17, 2015 03:08 |
|
Who's Matthew Garrett?
|
# ? Mar 17, 2015 03:10 |
|
http://en.wikipedia.org/wiki/Matthew_Garrett posted:Matthew Garrett is a technologist, programmer, and free software activist who is a major contributor to a series of free software projects including Linux, GNOME, Debian, Ubuntu, and Red Hat.[2] He is a recipient of the Free Software Award from the Free Software Foundation for his work on Secure Boot, UEFI, and the Linux kernel.[3]
|
# ? Mar 17, 2015 03:13 |
|
Tab8715 posted:Who's Matthew Garrett? He did a lot of the work on UEFI for linux. If that acronym means nothing to you then this talk he gave is a good watch. https://www.youtube.com/watch?v=V2aq5M3Q76U
|
# ? Mar 17, 2015 03:15 |
|
Is there anything OEL does uniquely well?
|
# ? Mar 17, 2015 03:29 |
|
It funnels money into oracle with a large profit margin.
|
# ? Mar 17, 2015 03:43 |
|
I had a breakthrough! Apparently, HP decided that consumer-grade computers will not be able to run virtualization for some reason. However, this can apparently be defeated by suspending the computer for two minutes. Now I can run 64-bit VMs just fine. What's the explanation for that?
|
# ? Mar 17, 2015 04:21 |
|
|
# ? May 18, 2024 10:19 |
|
karl fungus posted:I had a breakthrough! Sounds like when you're forcing the memory flush, it reloaded over what blocking firmware they decided to put in, or something. I have no idea.
|
# ? Mar 17, 2015 04:42 |