V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
cevincheung
V2EX  ›  问与答

c9.io 是啥原理?

  •  
  •   cevincheung · 2015-01-11 14:56:42 +08:00 · 3276 次点击
    这是一个创建于 3636 天前的主题,其中的信息可能已经有所发展或是发生改变。

    每创建一个workspace都好像分配了一台服务器的样子……

    自己安装了pgsql并且能够访问。啥原理

    docker咩?

    3 条回复    2015-01-16 15:03:15 +08:00
    loveminds
        1
    loveminds  
       2015-01-11 15:19:35 +08:00 via Android
    差不多,virt-what探测下就知道了
    loveminds
        2
    loveminds  
       2015-01-16 15:01:54 +08:00
    确实是个Docker,但是virt-what误判成kvm了
    minmemory@tianji:/home/ubuntu/workspace $ sudo cat /proc/1/cgroup
    10:perf_event:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
    9:blkio:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
    8:net_cls:/
    7:freezer:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
    6:devices:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
    5:memory:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
    4:cpuacct:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
    3:cpu:/docker/c442ce78d6e549bb4f83a5bb2c33227e25624def833807a39f5c6f4597465908
    2:cpuset:/
    loveminds
        3
    loveminds  
       2015-01-16 15:03:15 +08:00
    minmemory@timeless:/home/ubuntu/workspace $ cat /proc/cpuinfo
    processor : 0
    vendor_id : GenuineIntel
    cpu family : 6
    model : 62
    model name : Intel(R) Xeon(R) CPU @ 2.50GHz
    stepping : 4
    microcode : 0x1
    cpu MHz : 2500.000
    cache size : 30720 KB
    physical id : 0
    siblings : 16
    core id : 0
    cpu cores : 16
    apicid : 0
    initial apicid : 0
    fpu : yes
    fpu_exception : yes
    cpuid level : 13
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep
    bogomips : 5000.00
    clflush size : 64
    cache_alignment : 64
    address sizes : 46 bits physical, 48 bits virtual
    power management:

    processor : 1
    vendor_id : GenuineIntel
    cpu family : 6
    model : 62
    model name : Intel(R) Xeon(R) CPU @ 2.50GHz
    stepping : 4
    microcode : 0x1
    cpu MHz : 2500.000
    cache size : 30720 KB
    physical id : 0
    siblings : 16
    core id : 1
    cpu cores : 16
    apicid : 1
    initial apicid : 1
    fpu : yes
    fpu_exception : yes
    cpuid level : 13
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep
    bogomips : 5000.00
    clflush size : 64
    cache_alignment : 64
    address sizes : 46 bits physical, 48 bits virtual
    power management:

    ........

    processor : 15
    vendor_id : GenuineIntel
    cpu family : 6
    model : 62
    model name : Intel(R) Xeon(R) CPU @ 2.50GHz
    stepping : 4
    microcode : 0x1
    cpu MHz : 2500.000
    cache size : 30720 KB
    physical id : 0
    siblings : 16
    core id : 3
    cpu cores : 16
    apicid : 3
    initial apicid : 3
    fpu : yes
    fpu_exception : yes
    cpuid level : 13
    wp : yes
    flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep
    bogomips : 5000.00
    clflush size : 64
    cache_alignment : 64
    address sizes : 46 bits physical, 48 bits virtual
    power management:

    minmemory@timeless:/home/ubuntu/workspace $ free -m
    total used free shared buffers cached
    Mem: 60524 47504 13020 828 243 1647
    -/+ buffers/cache: 45613 14910
    Swap: 35839 20939 14900

    minmemory@timeless:/home/ubuntu/workspace $ df -lhT
    df: ‘/root/.ssh/authorized_keys’: Permission denied
    Filesystem Type Size Used Avail Use% Mounted on
    rootfs rootfs 1.1G 168M 858M 17% /
    none aufs 1.1G 168M 858M 17% /
    tmpfs tmpfs 30G 0 30G 0% /dev
    shm tmpfs 64M 0 64M 0% /dev/shm
    /dev/mapper/volg1-lvdata ext4 886G 485G 358G 58% /nix
    tmpfs tmpfs 30G 0 30G 0% /proc/kcore

    minmemory@timeless:/home/ubuntu/workspace $ sudo virt-what
    cat: /proc/1/environ: Permission denied
    kvm
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5759 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:55 · PVG 10:55 · LAX 18:55 · JFK 21:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.