Posts

“module load” works from command line, but not when I run it from PHP script

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I am trying to load the R-Project module when my PHP script runs. If I type "module load R-Project" before I run my script it works. But when I run exec("module load R-Project") from PHP, the module does not load and my program fails. Other posts suggest I may need to find the module load .sh script directly, but I am not sure where it would be. I used this advice to find modules.conf, but this file does not exist on my system. I have also tried shell_exec("module load R-Project") and this also did not work. I am on an AFS system at a university. I do not have superuser privileges. It seems like it may be a security issue? php afs share | improve this question asked Oct 13 '17 at 22:09 Steve Scott 1 1 add a comment  |  up vote 0 down vote favorite I am trying to load the R-Project module when my PHP script runs. If I type "modul...

How to see/determine on disk file size on Linux?

Image
Clash Royale CLAN TAG #URR8PPP up vote 3 down vote favorite 1 On windows you can see the size actual size of a file/directory and the size on disk, this size on disk depends on block size. How can I see this on Linux (mint)? I have disk with thousands of pictures with varied sizes. I want to see their actual size and the space they take up on disk, especially directories. On windows the difference can be in gigabytes of wasted space. files linux-mint disk-usage share | improve this question edited Oct 14 '17 at 0:37 peterh 3,970 9 27 55 asked Oct 13 '17 at 23:10 user3130012 18 3 Do you plan on recreating your filesystem(s) based on the results, in order to reduce this wasted space? Otherwise, it's a fact of life for most filesystems. – Jeff Schaller Oct 14 '17 at 0:13 yes that is what i wanted, to reduce wasted space or even just make two partition with different block sizes, one for v...

How do I improve the performance of this virtual network?

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I'm trying to create separate network isolation contexts for running some programs (satellites) that communicate with another program (the main program) that runs in a different context on the same host. I'm currently doing this with a veth pair, one of which is connected to a bridge in the main program's context. I'm using IPv6 link local addresses to avoid having to find some region of the IPv4 range that won't run afoul of any other uses. When I use iperf to measure TCP performance with connections to ::1 from the same network context I get a speed of about 65 Gbits/sec. When I measure performance between two interfaces in a veth pair, I get about 54Gbits/sec. And when I measure between a veth interface and a bridge that is a master of the other veth interface, I get about 48 Gbits/sec of performance. All of this is a lot faster than I'd likely be able to manage between two physically ...