Arsip untuk Juni, 2012

PROSES I/O


Sebuah proses memerlukan Input dan Output.

Instruksi (command) yang diberikan pada Linux melalui Shell disebut sebagai eksekusi program yang selanjutnya disebut proses. Setiap kali instruksi diberikan, maka Linux kernel akan menciptakan sebuah proses dengan memberikan nomor PID (Process Identity). Proses dalam Linux selalu membutuhkan Input dan menghasilkan suatu Output.
Dalam konteks Linux input/output adalah :
• Keyboard (input)
• Layar (output)
• Files
• Struktur data kernel
• Peralatan I/O lainnya (misalnya Network) Baca lebih lanjut

E: Sub-process /usr/bin/dpkg returned an error code (1)


Jika mengalami error seperti ini pada sangat melakukan upgrade, maka yang harus dilakukan:

OUTPUT :

Setting up postgresql-9.1 (9.1.4-0ubuntu12.04) …
 * Starting PostgreSQL 9.1 database server
 * The PostgreSQL server failed to start. Please check the log output:
2012-06-12 08:28:08 WIT FATAL:  could not create shared memory segment: Invalid argument
2012-06-12 08:28:08 WIT DETAIL:  Failed system call was shmget(key=5432001, size=39337984, 03600).
2012-06-12 08:28:08 WIT HINT:  This error usually means that PostgreSQL’s request for a shared memory segment exceeded your kernel’s SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently 39337984 bytes), reduce PostgreSQL’s shared memory usage, perhaps by reducing shared_buffers or max_connections.
    If the request size is already small, it’s possible that it is less than your kernel’s SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
    The PostgreSQL documentation contains more information about shared memory configuration.    [fail] Baca lebih lanjut